#include #include using namespace std; int main(void){ int N,ans=0; cin >> N; vector A(N),q; vector> B(N,vector(N)); for(int i=0;i> A[i]; for(int i=0;i> B[i][j]; for(int bits=0;bits<(1< p; for(int i=0;i0)cout << " "; cout << q[n]+1; } return 0; }