CF936B Sleepy Game

Description

Petya and Vasya arranged a game. The game runs by the following rules. Players have a directed graph consisting of $ n $ vertices and $ m $ edges. One of the vertices contains a chip. Initially the chip is located at vertex $ s $ . Players take turns moving the chip along some edge of the graph. Petya goes first. Player who can't move the chip loses. If the game lasts for $ 10^{6} $ turns the draw is announced. Vasya was performing big laboratory work in "Spelling and parts of speech" at night before the game, so he fell asleep at the very beginning of the game. Petya decided to take the advantage of this situation and make both Petya's and Vasya's moves. Your task is to help Petya find out if he can win the game or at least draw a tie.

Input Format

N/A

Output Format

N/A

Explanation/Hint

In the first example the graph is the following: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF936B/933142db306dc9f63dae26cdeb8c3bafdfa66ba8.png)Initially the chip is located at vertex $ 1 $ . In the first move Petya moves the chip to vertex $ 2 $ , after that he moves it to vertex $ 4 $ for Vasya. After that he moves to vertex $ 5 $ . Now it is Vasya's turn and there is no possible move, so Petya wins. In the second example the graph is the following: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF936B/8e2fea186d4a4262837a056dce297e786dfbf02f.png)Initially the chip is located at vertex $ 2 $ . The only possible Petya's move is to go to vertex $ 1 $ . After that he has to go to $ 3 $ for Vasya. Now it's Petya's turn but he has no possible move, so Petya loses. In the third example the graph is the following: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF936B/100651d77b5f87ec828b8f8f5fba499fe3f37744.png)Petya can't win, but he can move along the cycle, so the players will draw a tie.