n = int(input("Input a number: ")) sum_num = (n * (n + 1)) / 2 print(sum_num)