#T813. 分苹果

分苹果

Description

Distribute a pile of apples to n children, ensuring that each child receives at least one apple and that no two children receive the same number of apples. What is the minimum number of apples required to meet these conditions?

Input Format

A positive integer n not exceeding 1000, representing the number of children.

Output Format

An integer indicating the minimum number of apples required to satisfy the conditions.

```input1 8
```output1
36

代码在线