Xormites

아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Consider the following two-player game on a sequence of NN integers. The two players move in turns. In each move, the current player selects a value which is either at the beginning of the sequence or at the end of the sequence, adds it to this player's sum and removes the value from the sequence.

This is a well-known game. However, in this task, we will deal with the case in which the players add the values to a XOR sum, not a regular sum. Initially, the XOR sums of both players are equal to 00, and when adding a new value, bitwise XOR operation is used in place of addition.

The game ends when the sequence is empty, at which point the player with the highest XOR sum wins. Note that it is also possible for the game to end in a draw. Figure out the outcome of the game, considering the players behave optimally.

입력

The first line contains an integer TT, the number of test cases (1T121 \le T \le 12). Each test starts with a line containing an integer NN (1N50,0001 \le N \le 50\\,000), followed by another line containing a sequence of NN positive integers (1X1091 \le X \le 10^9 for all integers XX in the sequence).

출력

Print TT lines, one per test case. The ii-th line must contain the answer for the ii-th test. The answer must be one of the following:

  • "First" if the first player to move wins.
  • "Second" if the second player to move wins.
  • "Draw" if the game ends in a draw.