P4896 OIers' Troubles.
Background
OIers have a trouble. They used to be able to play games and surf the Internet as they liked, but ever since the school computer room enabled URL filtering, OIers started looking for games to play on Luogu.
However, after they played slay.one for just a few days, slay.one was blocked. They can only have fun for 2 hours at noon on weekdays, and there will be a handsome teacher patrolling the computer room. What should they do?
Description
There are 3 handsome teachers $A$, $B$, and $C$.
There are 5 students $a$, $b$, $c$, $d$, $e$. When any one of them starts playing games, a message `XX started playing games!` will be shown. When any one of them stops playing games, a message `XX stopped playing games!` will be shown.
When a teacher comes to patrol the computer room, a message `XX came!` will be shown. If a teacher leaves, a message `XX left!` will be shown.
If a teacher finds that some student is **playing** games, output that student's name.
Input Format
There are $N$ messages.
The first line contains $N$. The second line contains the names of the 3 teachers. The third line contains the names of the 5 students. Then the next $N$ lines contain the $N$ messages.
Output Format
Output the names of all students who are found playing games while teachers are patrolling, in lexicographical order.
If all students are found playing games, additionally output `How Bad Oiers Are!`.
If no one is found, or no one plays games, output `How Good Oiers Are!`.
Explanation/Hint
For $20\%$ of the testdata, $1\leq N\leq 23.3333333333333$.
For $30\%$ of the testdata, $1\leq N\leq 999.999$, and there is one test point whose answer is `How Good Oiers Are!`.
For $60\%$ of the testdata, $1\leq N\leq 100,000$.
For $99.9999999999999999999\%$ of the testdata, it is not guaranteed that all messages follow the statement.
For $100\%$ of the testdata, $1\leq N\leq 233,333$, and the testdata has gradients.
### Tips:
1. There will definitely be some weird stuff in the messages.
2. A message is valid only if it **fully matches the statement**.
3. The sample is disgusting, but the testdata is very innocent.
4. The testdata guarantees that there will not be multiple **teachers** patrolling at the same time.
5. Read the **problem** and the **sample** carefully. **This problem has traps!**
Translated by ChatGPT 5