Problem list
Log in
#coci00289 · COCI 2013/2014 Contest 3

Riječi

Silver V 1.0 s 32 MB

One day, little Mirko came across a funny looking machine! It consisted of a very very large screen and a single button. When he found the machine, the screen displayed only the letter A. After he pressed the button, the letter changed to B. The next few times he pressed the button, the word transformed from B to BA, then to BAB, then to BABBA... When he saw this, Mirko realized that the machine alters the word in a way that all the letters B get transformed to BA and all the letters A get transformed to B.

Amused by the machine, Mirko asked you a very difficult question! After K times of pressing the button, how much letters A and how much letters B will be displayed on the screen?

Input

The first line of input contains the integer K ($1 \le K \le 45$), the number of times Mirko pressed the button.

Output

The first and only line of output must contain two space-separated integers, the number of letters A and the number of letter B.

Constraints

In test data worth 20% of total points, K will be less or equal to 10.

Example 1

Input
1
Output
0 1

Example 2

Input
4
Output
2 3

Example 3

Input
10
Output
34 55
Source
COCI 2013/2014 Contest 3
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code