Roger is trying to debug three SQL queries. Sadly, he is not very good at SQL, and ends up in a bit of a situation. For some number of the queries, he must first debug another of the three queries. So it is possible that debugging the
Given these constraints, can you tell Roger if it is possible for him to debug all three of his queries?
Input Specification
The first and only line of input will contain
Output Specification
Output YES
if all the queries can be debugged, and NO
otherwise.
Sample Input
3 1 2
Sample Output
NO
Explanation for Sample Output
We have the loop
Comments