def cal_item(n): return 1/n k = int(input()) n = 1 Sn = 0 while Sn <= k: n += 1 Sn += cal_item(n) else: print(n)