eolymp
bolt
Try our new interface for solving problems
Problems

Interesting Number

Interesting Number

Tyomitch calls the number with 2n digits (without leading zeroes) "interesting", if it's divisible by both the number formed from its first n digits and the number formed from its last n digits. For example, 1020 is "interesting" (divisible by 10 and 20) and 2005 is not. Tyomitch wants to know how many "interesting" 2n-digit numbers exist. You are to help him.

Input

One integer n (1n10000).

Output

Print the number of "interesting" 2n-digit numbers.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1
Output example #1
14
Author Alexander Ipatov
Source 2005 Petrozavodsk Training Camp, August 30, Problem F