Tính tổng 2

View as PDF

Submit solution

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

Author:
Problem type

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

Cho dãy số hạng sau: -~1~, ~2~, ~5~, ~8~, ~11~, ... Tính tổng ~N~ số hạng đầu tiên của dãy.

Input

Nhập vào số nguyên ~N~ (~N~ > 0)

Output

Tổng ~N~ số hạng đầu tiên trong dãy

Examples

Input

20

Output

550

Comments

Please read the guidelines before commenting.


There are no comments at the moment.