n=gets.to_i-2 s=gets.chop t=s.chars.map{|c|c*(n+2)}*"" puts t,[s.chars.map{|c|c+" "*n+c}*""]*n,t
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page