P9749 [AOJ] Game
普及
题目描述

Problem statement

Two players are playing the game. The rules of the game will be described below.

There is a board of $ N × N $ squares, and each square has the number $ X_ {i, j} $ ($1 \ leq i, j \ leq N$) written on it. The first move and the second move alternately select hands and accumulate points. The first move has $ F $ points and the second move has $ 0 $ points.

$ t $ Shows the player's actions on the turn ($1 \ leq t \ leq 2N$).

  1. If you lose, no matter what move you and your opponent choose, immediately declare the loss and end the game.
  2. Choose a number from $ 1,2, ..., N $ that you have never chosen and use it as $ Y_t $.
  3. When the first move (that is, $ t $ is odd) and $ t> 1 $, the first move gets $ X_ {Y_ {t}, Y_ {t-1}} $ points. When $ t = 1 $, there is no change in the score of the first move.
  4. When it is the second move (that is, $ t $ is an even number), the second player gets $ X_ {Y_ {t-1}, Y_ {t}} $ points.
  5. When $ t = 2N $, 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.
  6. End the turn and give your opponent a turn.

The first move and the second move are selected based on the following criteria.

  1. 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.
  2. If you don't have a winning move, choose a draw if you have one.
  3. 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

  • $1 \ leq N \ leq 8$
  • $-10 ^ 5 \ leq F \ leq 10 ^ 5$
  • $-10 ^ 5 \ leq X_ {i, j} \ leq 10 ^ 5$

input

Input follows the following format. All given numbers are integers.

$ N $ $ F $
$ X_ {1,1} $ $ X_ {1,2} $ $ ... $ $ X_ {1, N} $
$ X_ {2,1} $ $ X_ {2,2} $ $ ... $ $ X_ {2, N} $
$ ... $
$ X_ {N, 1} $ $ X_ {N, 2} $ $ ... $ $ X_ {N, N} $

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