N = gets.i i = 1 ans = 0 while i <= N ans += i i += 1 break if i == N puts ans end