The input will consist of three lines containing three characters (X, O or _) each.
Output
Depending on the previously indicated rules, the output will consist in a single line indicating either
- NOT VALID
- PLAYING
- IT’S A TIE
- X WON
- O WON
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.