#P8241. [COCI 2013/2014 #3] RIJEČI

[COCI 2013/2014 #3] RIJEČI

Problem Description

One day, Mirko found a very large screen. At the beginning, there was only one letter A\texttt{A} on the screen. Mirko found a button next to the screen. When he pressed it once, the letter on the screen became B\texttt B. Then he pressed it several more times, and the screen showed BA\texttt{BA}, BAB\texttt{BAB}, BABBA\texttt{BABBA}, \ldots in order. Only then did he realize that every time he pressed the button, each letter B\texttt B on the screen changed into BA\texttt{BA}, and each letter A\texttt A changed into B\texttt{B}.

Now, Mirko has pressed the button kk times, and he wants to know how many letters A\texttt A and how many letters B\texttt B are on the screen.

Input Format

Input an integer kk, representing the number of times Mirko pressed the button.

Output Format

Output two integers separated by a space, representing the number of letters A\texttt A and the number of letters B\texttt B, respectively.

1
0 1
4
2 3
10
34 55

Hint

Constraints

For 20%20\% of the testdata, it is guaranteed that k10k\leqslant 10.
For all testdata, 1k451\leqslant k\leqslant 45.

Source

This problem is from COCI 2013-2014 CONTEST 3 T1 RIJEČI. It uses the original testdata configuration, with a full score of 5050 points.

Translated and compiled by Eason_AC.

Translated by ChatGPT 5