Fib

Given X, compute the largest N such that FIB(N) < X.

Recall that:

  • FIB(N) = FIB(N-1) + FIB(N-2) for N > 1
  • FIB(0) = 0
  • FIB(1) = 1

Input

The first line contains an integer X.

Output

A single integer N.

Constraints

  • 1 ≤ X ≤ 262

Samples

InputOutput
106
359
Questions?

Sponsors Gold