n = int(input()) a,b = 0,1 res = 999999 while True: a,b = b,a+b res = min(res,abs(b - n)) if b > n: &nb...