#include using namespace std; int i,j; int main() { for (i=0; i<16; i++) for (j=0; j<16; j++) printf("%d%c",(i+j)%4+1,(j==15)?'\n':' '); return 0; }