#include #include #include #include #include #define mp make_pair #define pb push_back #define LL long long #define inf 2e9 #define zeros x^(x-1)&x using namespace std; int main() { LL x,c; cin>>x; if (x==0) { while (true) { int MLC = 1; x = MLC; } x/=0; } if (x==1) { cout<<0<<'\n'; return 0; } LL a = 0; LL b = 1; int nr = 0; while (x-b>a) { c = (a+b); a=b; b=c; nr++; } cout<