(n=gets.to_i).times{|i|i%=~-n;puts" "*(n-i-2)+"*"*i.id}