N = int(input()) a, b = 12, 4 for n in range(N): a, b = 19 * a - 48 * b, a print('{:.11f}'.format(b/(4**N)))