n = gets.chomp.to_i n.times {|i| (n - i).times { print n } puts }