n=gets.to_i puts n.times.map{|i| (1..n).to_a.rotate(i)*' '}