|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||1024 MB||1||1||1||100.000%|
Nowadays, bubble tea has been famous around the globe. They have different names – bubbles, pearls, and tapioka. People start thinking to put almost every food together with tapioka. E.g., bubble tea pizza, bubble tea ramen, bubble tea hotpot, bubble tea cake, and so on.
Given the name of a dish, you are going to repeatedly remove all the tapioka part and reveal the true colors of that dish. Notice that the dishes in this problem will consist of exactly three words. Every dish always starts with either the term “bubble tea” or “tapioka”. For example, you may observe a dish named “bubble tea ramen”, but you will never observe a dish named “bubble ramen tea”.
The input file contains exactly one test case. There is only one line in the input file, and it contains a dish name consisting of exactly three words.
If after repeatedly removing all occurrence of “bubble” or “tapioka” (as entire word) but you found nothing left, output “nothing”. Otherwise, output the remaining words separated by blanks in the original order.
bubble tea pizza
tapioka cake tapiokas
tapioka jasmine tea
tapioka bubble tapioka