#include #include #include> #include #include using namespace std; #define LL long long const int maxn = 100050; ///LL inf = 1e18; LL solve(LL x) { LL ans = 0; while(x>0){ LL k = 0; while((1LL<