You are given a game name of length . It consists only of uppercase and lowercase English letters, contains no spaces, and starts with an uppercase letter.
Split the name into one or more words. Each word must start with an uppercase letter, followed only by lowercase letters. A word may consist of a single letter.
A game is called a bad game if at least two distinct words among Last, War, Z, X, and Clash occur in this split. Repeated occurrences of the same word count as only one distinct word.
Determine whether the given game is a bad game.
The input is given in the following format:
Print YES if the game is a bad game; otherwise, print NO.