题目描述
Lazy caterer sequence is defined as the maximum number of pieces formed when slicing a convex pancake with n cuts (each cut is a straight line). The formula is Cn = n·(n + 1) / 2 + 1. You are given n; calculate n-th element of the sequence.
Input
The only line of the input contains an integer n (0 ≤ n ≤ 100).
Output
Output the n-th element of lazy caterer sequence.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
2
样例输出
4