88 - ZOJ 8th Anniversary Contest - G
Since today is so special, ZOJ would only accept a special kind of strings to pass its tests. The AC rules are given as the following:
Now it is your job to write a special judge program to tell if an input string is an AC string.
The input consists of multiple test cases, each occupies a line containing the input string with length greater than 1 and less than 100. The string consists of only 'Z', 'O', and 'J'. Proceed until the end of file.
For each test case, print in a line "Accepted" if the string is acceptable, or "Wrong Answer" if not.
ZOJO OZOJOO OZOOJOOO OZOZOJOO OOZOOJO
Accepted Accepted Accepted Wrong Answer Wrong Answer
Author: CHEN, Yue
Source: ZOJ 8th Anniversary Contest