# 入力された値を文字列で受け取る input = gets.chomp.to_i input.times do |i| puts i * (input - i) end