Tính tổng 3

View as PDF

Submit solution

Points: 0.10
Time limit: 0.1s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Giới thiệu: Đây là đề Training Python

Viết chương trình tính ~S~ biết rằng:

~S = (2 + 3 + 4 + ... + n) + 2n~

Trong đó, ~n~ là số nguyên dương nhập từ bàn phím, ~n\ge2~

Input

Số nguyên dương ~n~

Output

Giá trị ~S~

Examples

Input

3

Output

11

Comments

Please read the guidelines before commenting.


There are no comments at the moment.