a:" ##";b:"# ";stdin.get_s(2).to_i-1 .times{a~=" ##";b="# "~b;}a.p;" "~b~b~b~b~" "~b~a .p;