#include <iostream>
using namespace std;
int main() {
int n, m;
cin >> m >> n;
for(int i=1; i<=m; i++){
for(int j=1; j<=n; j++){
if((i+j)%3==0) cout << 2;
else{
if(j%3==0){
if((i+j+1)%3==0) cout << 1;
else cout << 3;
}
else if((j-1)%3==0) cout << 1;
else cout << 3;
}
}
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgbTsKCWNpbiA+PiBtID4+IG47Cglmb3IoaW50IGk9MTsgaTw9bTsgaSsrKXsKCQlmb3IoaW50IGo9MTsgajw9bjsgaisrKXsKCQkJaWYoKGkraiklMz09MCkgY291dCA8PCAyOwoJCQllbHNlewoJCQkJaWYoaiUzPT0wKXsKCQkJCQlpZigoaStqKzEpJTM9PTApIGNvdXQgPDwgMTsKCQkJCQllbHNlIGNvdXQgPDwgMzsKCQkJCX0KCQkJCWVsc2UgaWYoKGotMSklMz09MCkgY291dCA8PCAxOwoJCQkJICAgICBlbHNlIGNvdXQgPDwgMzsKCQkJfQoJCX0KCQljb3V0IDw8IGVuZGw7Cgl9CglyZXR1cm4gMDsKfQ==