n = gets.to_i n.times{|i|puts "#{n}"*(n-i)}