import sys # 1. Nをtryブロック内で読み込み、**整数に変換**する try: N = int(sys.stdin.readline().strip()) except: # 読み込みエラーや数値変換エラーが出た場合 exit() # 2. 関数は使わずに、直接計算して出力する # 整数除算 // を使う (Nはintなので結果もintになる) result = N * (N + 1) // 2 print(result)