puts ->i{Array.new(i,i)}[gets.to_i].each_with_index.map{|n,i|n.to_s*(n-i)}.join $/