n = int(input('Enter value for N: '))
result = 0
for i in range(0, n+1):
  result = result + i
print('Sum is {}'.format(result))


''' Kakvo az bih napisal

n = int(input('Enter value for N: '))
print('Sum is {}'.format(n*(n+1)/2))

'''