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 SQL query requires the query to have been debugged, debugging the query might require the query to be debugged first, and so on.
Given these constraints, can you tell Roger if it is possible for him to debug all three of his queries?
The first and only line of input will contain integers. The integer will be if the query can be debugged straight away, otherwise it will be a positive integer , meaning that query must be debugged before query .
YES if all the queries can be debugged, and
3 1 2
Explanation for Sample Output
We have the loop , and thus none of them can be debugged.