#include <iostream>
#include <cmath>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
cout<<"4 4"<<endl<<"226 137 124 206 98 94 211 113 110 222 132 103"<<endl<<"163 59 71 237 147 114 218 158 151 202 176 186"<<endl<<"177 63 85 231 123 101 161 50 65 108 34 68"<<endl<<"87 13 57 130 66 117 130 30 55 182 113 112";
return 0;
}