r = gets.chomp.to_i c = r 1.step(r) do str = "" 1.step(c) do str += r.to_s end puts str c -= 1 end