H.py 74 B

1
  1. while True: print('%.3f' % sum(1 / i for i in range(1, int(input()) + 1)))