#include using namespace std; using ll=long long; map mp; struct node { ll x; int y; } a[200001]; bool cmp(node &a,node &b) { if(a.x==b.x) return a.y>n; for(int i=1;i<=n;++i) { cin>>a[i].x; a[i].y=i; } cout<<"2 "<<"\n"; ll x=1; for(int i=1;i<=60;++i) { x*=2; mp[x]=1; mp[x-1]=2; } sort(a+1,a+1+n,cmp); bool ok=false; if(a[1].x==0) ok=true; for(int i=2;i<=n;++i) { if(a[i].x==a[i-1].x) { cout<