program parkour;
const
MAXN = 800;
MAXM = 800;
var
M, N, i,j : LongInt;
level : Array[0..MAXN-1,0..MAXM-1] of char;
begin
{
uncomment the two following lines if you want to read/write from files
assign(input, 'input.txt'); reset(input);
assign(output, 'output.txt'); rewrite(output);
}
ReadLn(N, M);
for i := 0 to N-1 do
for j:=0 to M-1 do level[i,j] := '.';
if M<N then writeln(-1)
else
begin
for i := 1 to N-1 do
level[i,i-1] := '#';
for i := 0 to N-1 do
begin
for j:=0 to M-1 do write(level[i,j]);
writeln;
end;
end;
end.
cHJvZ3JhbSBwYXJrb3VyOwpjb25zdAogICAgTUFYTiA9IDgwMDsKICAgIE1BWE0gPSA4MDA7CnZhcgogICAgTSwgTiwgaSxqIDogTG9uZ0ludDsKICAgIGxldmVsICAgOiBBcnJheVswLi5NQVhOLTEsMC4uTUFYTS0xXSBvZiBjaGFyOwoKYmVnaW4KewogICAgdW5jb21tZW50IHRoZSB0d28gZm9sbG93aW5nIGxpbmVzIGlmIHlvdSB3YW50IHRvIHJlYWQvd3JpdGUgZnJvbSBmaWxlcwogICAgYXNzaWduKGlucHV0LCAgJ2lucHV0LnR4dCcpOyAgcmVzZXQoaW5wdXQpOwogICAgYXNzaWduKG91dHB1dCwgJ291dHB1dC50eHQnKTsgcmV3cml0ZShvdXRwdXQpOwp9CgogICAgUmVhZExuKE4sIE0pOwoKICAgIGZvciBpIDo9IDAgdG8gTi0xIGRvIAogICAgICAgICAgICAgICAgICAgICAgIGZvciBqOj0wIHRvIE0tMSBkbyBsZXZlbFtpLGpdIDo9ICcuJzsKICAgIGlmIE08TiB0aGVuIHdyaXRlbG4oLTEpCiAgICAgICAgICAgZWxzZQogICAgICAgICAgICAgIGJlZ2luCiAgICAgICAgICAgICAgICBmb3IgaSA6PSAxIHRvIE4tMSBkbyAKICAgICAgICAgICAgICAgICAgICAgICAgbGV2ZWxbaSxpLTFdIDo9ICcjJzsKICAgICAgICAgICAgICAgIGZvciBpIDo9IDAgdG8gTi0xIGRvIAogICAgICAgICAgICAgICAgICAgICBiZWdpbgogICAgICAgICAgICAgICAgICAgICAgIGZvciBqOj0wIHRvIE0tMSBkbyB3cml0ZShsZXZlbFtpLGpdKTsKICAgICAgICAgICAgICAgICAgICAgICB3cml0ZWxuOwogICAgICAgICAgICAgICAgICAgICBlbmQ7ICAKICAgICAgICAgICAgIGVuZDsgICAgICAgIAplbmQuCg==