#include using namespace std ; /* ifstream cin ("input") ; ofstream cout ("output") ; */ int main(int argc, char const *argv[]) { int n = 16 ; for (int i = 1 ; i <= 16 ; ++ i) { for (int j = 1 ; j <= 16 ; ++ j) { if ((i + j) % 2) { cout << 1 << ' ' ; } else cout << 2 << ' ' ; } cout << '\n' ; } return 0; }