input = gets.to_i sum = (1..input).reduce(0) { |sum, n| sum + n } print sum