#include #include #include #include #include #include #include #include #include #include using namespace std; template ostream& operator << (ostream& os, vector vec){ for(int i=0; i> n >> m; vector fib(n+1, 0); fib[0] = fib[1] = 1; for(int i=2; i= fib[k]){ val -= fib[k]; cnt++; } k--; } cout << cnt << endl; return 0; }