405836: GYM102133 G Moore's Law

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

G. Moore's Lawtime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard output

In 1965, one of the Intel corporation founders, Gordon Moore noticed that number of transistors on integrated circuit chip doubles every 24 month. Nowadays, British scientists have decided to clarify this empirical law. As a result of this research, the number of transistors can be only represented as a decimal number containing only digits 1 and 2. Thus, first generation of integrated circuits had only 2 transistors and second generation had 12 transistors, respectively. Furthermore, according to a new version of Moore's Law, for n-th generation of integrated circuit number of transistors should be a multiple of 2n. To check the British scientists' experimental results you are required to design a program, which computes number of transistors on n-th generation of integrated circuits according to a new Moore's law.

Input

A single line contains a positive integer n – considered generation of integrated circuits.

1 ≤ n ≤ 42
Output

You are required to compute number of transistors on integrated circuit chip for given generation n according to the given above constraints. The output should not exceed 10100000. If multiple answers exist, you may output any of them. If the correct number of transistors does not exist, output -1.

ExamplesInput
1
Output
2
Input
2
Output
2112

加入题单

上一题 下一题 算法标签: