#include <iostream>
using namespace std;
int main(){
int m,n;
cin>>n>>m;
for(int i=1;i<m+1;i++){
for(int j=1;j<n+1;j++){
if(i%2==0){
if ((j+3)%4==0)
cout<< "1";
else
cout<<(j%4==0?"2":"+");
}
else{
if ((j+1)%4==0)
cout<<"1";
else
cout<<((j+2)%4==0?"2":"+");
}
}
cout<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogaW50IG1haW4oKXsKICAgICAgICBpbnQgbSxuOyAKCWNpbj4+bj4+bTsKCWZvcihpbnQgaT0xO2k8bSsxO2krKyl7IAoJCWZvcihpbnQgaj0xO2o8bisxO2orKyl7ICAKCQkJaWYoaSUyPT0wKXsKCQkJCWlmICgoaiszKSU0PT0wKSAKCQkJCQljb3V0PDwgIjEiOyAKCQkJCWVsc2UgCgkJCQkJY291dDw8KGolND09MD8iMiI6IisiKTsKCQkgICAgICAgIH0KCQkJZWxzZXsKIAkJCQlpZiAoKGorMSklND09MCkKCQkJCQljb3V0PDwiMSI7CgkJCQllbHNlIAoJCQkJCWNvdXQ8PCgoaisyKSU0PT0wPyIyIjoiKyIpOwoJCQl9CgkJfQoJCQljb3V0PDxlbmRsOwoJfQkKCXJldHVybiAwOwp9