#include #include #include using namespace std; using namespace __gnu_pbds; #define PI acos(-1) #define LSB(i) ((i) & -(i)) #define ll long long #define pb push_back #define mp make_pair #define mt make_tuple #define fi first #define sc second #define th third #define fo fourth #define pii pair #define pll pair #define ldb double #define INF 1e15 #define MOD 1000000007 #define endl "\n" #define all(data) data.begin(),data.end() #define TYPEMAX(type) std::numeric_limits::max() #define TYPEMIN(type) std::numeric_limits::min() #define MAXN 1000007 ll p[MAXN],nxt[MAXN],cnt,k; bool vis[MAXN]; void DFS(ll i) { vis[i]=true; if(!vis[i*2%(1<>n; k = 0; while((1<=n) { for(int j=k;j+1;j--) cout<>j)&1)); jj=nxt[nxt[i]]; for(int j=k+2;j<=n;j++) {cout<> t; while (t--) solve(); return 0; }