Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- F = int(input())
- i1 = 1
- i2 = 1
- n = 2
- while i1 < F:
- i1, i2 = i1 + i2, i1
- n += 1
- if i1 == F: print(n)
- else: print(-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement