Tính tổng 4

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à đề thi ICPC

Cho dãy số sau: 8, 24, 72, 216, 648, ... Hãy tính tổng N số hạng đầu tiên.

Input

Số nguyên dương N.

Output

Tổng N số hạng đầu.

Examples

Input

5

Output

968

Comments

Please read the guidelines before commenting.


There are no comments at the moment.