1846: 【CSP函数递归】数数小木块▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

在墙角堆放着一堆完全相同的正方体小木块,如下图所示:

因为木块堆得实在是太有规律了,你只要知道它的层数就可以计算所有木块的数量了。

Input

只有一个整数 lns="http://www.w3.org/1998/Math/MathML">n ,表示这堆小木块的层数,已知 lns="http://www.w3.org/1998/Math/MathML">1n100 

Output

只有一个整数,表示这堆小木块的总数量。

Sample Input Copy

3

Sample Output Copy

10