Under construction

Still being built. Things may change

Game on Plane

Time limit1sMemory limit1024 MB

Summary
Players alternately draw non-crossing segments between vertices of a regular N-gon, and the one who completes a convex polygon wins. Decide who should move first to force a win.
Level

Hard8 of 10

Topics
Game theory, Geometry
Solved
No attempts yet

Problem

You are given NN points on a plane. These points are exactly the vertices of a regular NN-gon. Koosaga, an extreme villain, challenges you to a game using these points. You and Koosaga take turns, and on each turn the player does the following.

  1. Chooses two of the given points.
  2. Draws the line segment connecting the two chosen points.

The newly drawn segment must not cross any previously drawn segment in its interior. Two segments may meet at their endpoints. If at any point a convex polygon formed by the drawn segments exists, the game ends, and the last player to move wins.

Koosaga lets you choose who moves first. Given the integer NN, decide whether you must move first or second so that you can win no matter how Koosaga plays.

Input

The input consists of many test cases. The first line contains an integer TT (1≤T≤5,0001\leq T\leq 5,000), the number of test cases. Each of the following TT lines contains one integer NN (3≤N≤5,0003\leq N\leq 5,000).

Output

For each test case, print one line containing First if you must move first, or Second if you must move second so that you can win no matter how Koosaga plays.

Examples1

  1. Example 1

    Input
    2
    3
    5
    
    Expected output
    First
    Second