Repeat after me
It’s hard to concentrate on repetitive things. So, you decide to automate that process as much as possible.
You want to write a program that would repeat phrases told by your friend who wants to teach you a lesson.
You know that there will be
n
phrases. And after that, you need to repeat all those phrases. Write a program that would repeat the inputted phrases and print them in the output.But you want to prank your friend as well. So, instead of the last sentence, you always tell:
I'LL WATCH YOUTUBE AND MEMES
.![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F865a5125-8e5e-426d-ad8e-730b97c447f4%2F6ea9yk.jpg?table=block&id=4ccae132-0b00-4490-866c-dcb577d361b8&cache=v2)
The first line of the input contains a single integer
n
(2 ≤ n ≤ 100). The following n
lines contain the phrases your friend wants to teach you. The program should print all the phrases and the prank in the end.
Input | Output |
4
I
WILL
DO MY WORK
I WILL DO MY WORK | I
WILL
DO MY WORK
I'LL WATCH YOUTUBE AND MEMES |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB