x = int(input()) s = 0 i = 1 while True: s += 1 / i if s > x: print(i) break i += 1 /************************************************************** Problem: 1078 User: admin Language: Python Result: Accepted Time:100 ms Memory:34244 kb ****************************************************************/