#include #include using namespace std; const int nmax=100000*4+5; int n,j,i; struct sir {int ini,val;}; sir a[nmax]; int dp[nmax]; int poz[nmax]; bool cmp (sir A , sir B) { return A.val>n; for (i=1;i<=n;i++) { cin>>a[i].val; a[i].ini=i; if (a[i].val%n==0) { cout<<"1"<<'\n'; cout<