C.py 94 B

123456
  1. n,s,h = int(input()),0,100
  2. s -= h
  3. for i in range(n):
  4. s += 2 * h
  5. h /= 2
  6. print('%.4f'%s)