#include using namespace std; const int N=1e5+2; int n; vector a[N]; bitset<2*N> b,ans,t; int main() { ios::sync_with_stdio(false); cin.tie(0),cout.tie(0); cin>>n; int u; for(int i=0;i>u; a[u].push_back(i); } for(int i=0;i>u,b[i]=u; for(int i=0;i