#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 int n; vector s; vector ans; void dfs(vector a,vector b){ if(a.size()==0){ //cout<>n; s.resize(n,""); rep(i,n){ rep(j,n){ int t; cin>>t; s[i] += '0'+t; } } ans.resize(n,0); vector a(n); rep(i,n)a[i] = i; vector b; dfs(a,b); rep(i,n)ans[i] *= 1LL<<(n-1); rep(i,n){ cout<