elfnt wants to practice his English vocabulary, so Momo designed a word guessing game (AKA The hang man game) for him.
The rules are as follows:
In each chance, he may choose one of the following operations:
check c
c exists in the hidden word. (uppercase)c in the word._).guess word
word.You win and terminate the game.Wrong.chance
hint
Already used (does NOT consume a chance).hint still consumes the one-time chance (if not used) but does not reveal anything new._).check, guess, or first-time hint) consumes one chance.chance and repeated hint do not consume any chance.You lose and terminate.check cguess wordhintchancechance and repeated hint operations does not exceed $2000$ times.A–Z).hint operation.Follow the rules strictly:
check or valid hint, print the status. (letters + _).guess, print You win if correct and terminate immediately; otherwise print Wrong.chance command, print the remaining number of chances (without consuming any).hint is repeated, print Already used (without consuming a chance).You lose.