thickness = int(input())
days = 1
big_mouse = 1
total_big = 1
small_mouse = 1
total_small = 1
while True:
days += 1
big_mouse = big_mouse * 2
total_big += big_mouse
small_mouse = small_mouse * 0.5
total_small += small_mouse
if total_big + total_small >= thickness:
break
print(days)
print("{:.1f} {:.1f}".format(total_small, total_big))