#include "bits/stdc++.h" using namespace std; #define int long long #define FOR(i, a, b) for(int i=(a);i<(b);i++) #define RFOR(i, a, b) for(int i=(b-1);i>=(a);i--) #define REP(i, n) for(int i=0; i<(n); i++) #define RREP(i, n) for(int i=(n-1); i>=0; i--) #define ALL(a) (a).begin(),(a).end() #define UNIQUE_SORT(l) sort(ALL(l)); l.erase(unique(ALL(l)), l.end()); #define CONTAIN(a, b) find(ALL(a), (b)) != (a).end() #define array2(type, x, y) array, x> #define vector2(type) vector > #define out(...) printf(__VA_ARGS__) int dx[] = {0,1,1,0,-1,-1,-1, 0, 1}; int dy[] = {0,0,1,1, 1, 0,-1,-1,-1}; void solve(); signed main() { #if DEBUG std::ifstream in("input.txt"); std::cin.rdbuf(in.rdbuf()); #endif cin.tie(0); ios::sync_with_stdio(false); solve(); return 0; } /*================================*/ int N,M,Q; int A[10][10], T[10][10]; int REV; void print(int T[][10]) { REP(m,M) { REP(n,N) { cout << T[m+1][n+1]; } cout << endl; } cout << "-----" << endl; } void reverse(int T[][10], int m, int n) { REV++; REP(i,9) { int nm = m + dx[i]; int nn = n + dy[i]; T[nm][nn] = !T[nm][nn]; } // out("%lld, %lld\n", m, n); // print(T); } bool ok(int T[][10]) { REP(m,M)REP(n,N) if (T[m+1][n+1]) return false; return true; } void solve() { cin>>M>>N; REP(m,M)REP(n,N) cin>>A[m+1][n+1]; int ans = LONG_LONG_MAX; REP(i,1<(i) << " " << bitset<3>(k) << endl; // print(T); REV=0; REP(j,N) { if (i&(1< 100) { cout << "Impossible" << endl; } else { cout << ans << endl; } }