| UTPC Contest 03-22-24 Div. 2 (Beginner) |
|---|
| Закончено |
Hamlet needs your help to solve this very deep and existential question. In front of him is a message from Shakespeare himself (don't question how this makes sense), and it is Hamlet's job to decipher its meaning.
The message consists of English letters as well as spaces. Hamlet is especially interested in whether or not the message contains "be" (without quotation marks and ignoring capitalization) as a substring at any point. For example, if the message were "To BE or not to bE that is the question", then clearly it would contain "be", whereas if the message were "To or not to that is the question", it would not contain "be".
Can you help Hamlet with this daunting task?
The input consists of a single line containing a string $$$s\ (1 \leq |s| \leq 10^3)$$$ denoting Shakespeare's message to Hamlet. It is guaranteed that $$$s$$$ consists only of English letters and spaces, and the first and last characters are guaranteed to be English letters ($$$s$$$ will not begin or end with a space).
The output should consist of a single string, either "yes" or "no" (without quotation marks), denoting whether or not the message contains "be" (without quotation marks) as a substring at any point (ignoring capitalization). The output is case insensitive; if the answer is "yes", then answers such as "Yes", "YES", and "yEs" will also be accepted.
To Be or Not to BE that is the QUESTION
YES
To b or not to b that is the question
NO
| Название |
|---|


