#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 on the screen. Mirko found a button next to the screen. When he pressed it once, the letter on the screen became . Then he pressed it several more times, and the screen showed , , , in order. Only then did he realize that every time he pressed the button, each letter on the screen changed into , and each letter changed into .
Now, Mirko has pressed the button times, and he wants to know how many letters and how many letters are on the screen.
Input Format
Input an integer , representing the number of times Mirko pressed the button.
Output Format
Output two integers separated by a space, representing the number of letters and the number of letters , respectively.
1
0 1
4
2 3
10
34 55
Hint
Constraints
For of the testdata, it is guaranteed that .
For all testdata, .
Source
This problem is from COCI 2013-2014 CONTEST 3 T1 RIJEČI. It uses the original testdata configuration, with a full score of points.
Translated and compiled by Eason_AC.
Translated by ChatGPT 5