#import"bits/stdc++.h" int N,a,i,j,L,x,y;main(){std::cin>>N;std::vectorP(N+4,N),C(N);for(;i1&&!C[i]){P[L++]=i;for(;j