#include<iostream>
using namespace std;
int main(){
int h,w;
cin>>h>>w;
int a[200];
for(int i=1;i<=100;i++){
if(i%4==1){
a[i]=2;
}
else if(i%4==2){
a[i]=0;
}
else if(i%4==3){
a[i]=2;
}
else if(i%4==0){
a[i]=5;
}
}
for(int i=1;i<=h;i++){
if(i%4==1){
for(int j=1;j<=w;j++){
cout<<a[j];
}
cout<<endl;
}
else if(i%4==2){
for(int j=2;j<=w+1;j++){
cout<<a[j];
}
cout<<endl;
}
else if(i%4==3){
for(int j=3;j<=w+2;j++){
cout<<a[j];
}
cout<<endl;
}
else if(i%4==0){
for(int j=4;j<=w+3;j++){
cout<<a[j];
}
cout<<endl;
}
}
return 0;
}