#D8935. Game
Game
Game
Problem statement
Two players are playing the game. The rules of the game will be described below.
There is a board of squares, and each square has the number () written on it. The first move and the second move alternately select hands and accumulate points. The first move has points and the second move has points.
Shows the player's actions on the turn ().
- If you lose, no matter what move you and your opponent choose, immediately declare the loss and end the game.
- Choose a number from that you have never chosen and use it as .
- When the first move (that is, is odd) and , the first move gets points. When , there is no change in the score of the first move.
- When it is the second move (that is, is an even number), the second player gets points.
- When , win / loss judgment is made and the game ends. If the player who has the most points wins and the points are the same, it is a draw.
- End the turn and give your opponent a turn.
The first move and the second move are selected based on the following criteria.
- If there is a move that you can win, choose that move. If there are multiple moves that you can win, choose the move that will end the game in the shortest time.
- If you don't have a winning move, choose a draw if you have one.
- Choose a move that will end the game at the longest when you have only a losing move.
Find out the outcome of the game and how many turns the game will end when the first move and the second move choose their moves based on these criteria.
Constraint
input
Input follows the following format. All given numbers are integers.
output
Output "First" if the first move wins, "Second" if the second move wins, and "Draw" if it is a draw. Print on the second line how many turns the game will end.
Examples
Input
2 0 1 3 1 1
Output
Second 3
Input
2 100 0 0 0 0
Output
First 2
Input
2 5 3 4 7 6
Output
Draw 4
inputFormat
input
Input follows the following format. All given numbers are integers.
outputFormat
output
Output "First" if the first move wins, "Second" if the second move wins, and "Draw" if it is a draw. Print on the second line how many turns the game will end.
Examples
Input
2 0 1 3 1 1
Output
Second 3
Input
2 100 0 0 0 0
Output
First 2
Input
2 5 3 4 7 6
Output
Draw 4
样例
2 5
3 4
7 6
Draw
4
</p>