n = gets.to_i sum = 0 (n+1).times do |i| sum += i end puts sum