#P6660. Determine the Source Book
Determine the Source Book
Determine the Source Book
Given an integer t
representing the number of text segments found, these segments are known to have been extracted from one of the following three books:
- Pan Tadeusz by Adama Mickiewicza
- Quo Vadis by Henryka Sienkiewicza
- Lalka by Bolesława Prusa
Your task is to determine exactly from which book the segments come. To achieve this, use the following rule:
Let $$\text{book_index} = t \bmod 3.$$ Then:
- If $$\text{book_index} = 0$$, output Pan Tadeusz.
- If $$\text{book_index} = 1$$, output Quo Vadis.
- If $$\text{book_index} = 2$$, output Lalka.
Note: The input value t
satisfies 0 ≤ t ≤ 109
.
inputFormat
The input contains a single integer t
(0 ≤ t ≤ 109
), representing the number of text segments found.
outputFormat
Output the title of the book from which the segments come, according to the rule provided.
sample
0
Pan Tadeusz