시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 0 0 0 0.000%

문제

There is a chessboard of the size M×NK fairy chess pieces called (pq)-leapers (p < q) are placed in some squares on this board. Leaper’s move is similar to a regular chess knight’s move, with some constraints though. When (pq)-leaper moves, it can move p squares horizontally and qsquares vertically (only upward), or q squares horizontally (only leftward) and p squares vertically. In other words, the move to q squares must be in a direction where corresponding coordinate decreases. Moving outside of the board is prohibited. However several leapers are allowed to occupy the same square.

Two players are playing the game, alternating moves. In his turn a player chooses some leaper and moves it according to the rules. The player who is not able to move any leaper loses the game. Givena board configuration determine the winner, assuming both players play optimally.

입력

The first line of input contains 5 integers: MNKpq (1 ≤ MN ≤ 1091 ≤ K ≤ 1051 ≤ p < q ≤ 20). Each of following K lines contains coordinates riand ciof corresponding leaper (1 ≤ ri≤ M1 ≤ ci≤ N).

출력

The single line of output should contain stringFirst, if the first player wins the game under optimal strategy, andSecondotherwise.

예제 입력 1

10 10 2 1 2
3 7
7 3

예제 출력 1

Second

예제 입력 2

7 5 3 1 3
2 3
1 5
4 3

예제 출력 2

First

힌트