#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) && ((j+3)%4==0))||((i%2!=0) && ((j+1)%4==0)))
{
cout<< "1";
}
if ((j+3-i%2*2)%4!=0)
{
cout<<((j+i%2*2)%4==0?"2":"+");
}
}
cout<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpCnsKCWludCBtLG47IAoJY2luPj5uPj5tOwoJZm9yKGludCBpPTE7aTxtKzE7aSsrKQoJeyAKCQlmb3IoaW50IGo9MTtqPG4rMTtqKyspCgkJeyAgCgkJCWlmKCAoKGklMj09MCkgJiYgKChqKzMpJTQ9PTApKXx8KChpJTIhPTApICYmICgoaisxKSU0PT0wKSkpCgkJCXsKCQkJCWNvdXQ8PCAiMSI7IAoJCQl9CgkJCWlmICgoaiszLWklMioyKSU0IT0wKQoJCQl7CgkJCQljb3V0PDwoKGoraSUyKjIpJTQ9PTA/IjIiOiIrIik7CgkJCX0KCQl9CgkJY291dDw8ZW5kbDsKCX0JCglyZXR1cm4gMDsKfQ==