Remove the Prime

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

문제

Two players play a game using an array of positive integers. They make alternating moves, the player who cannot make a move loses. In one move you have to choose a prime number pp and a non-empty segment \[l;r]\[l;r] of the array such that all numbers in this segment are divisible by pp, and then remove all factors pp from each of them. Removing all factors means that we take a number and divide it by pp while it is divisible.

Determine who wins if both players play optimally.

입력

The first line contains one integer nn (1n10001 \le n \le 1000) --- the size of array.

The second line contains the array a_1,a_2,,a_na\_{1}, a\_{2}, \ldots, a\_{n} itself (1a_i10181 \le a\_{i} \le 10^{18}).

출력

Print "First" (without quotes) if first player wins and "Second" (without quotes) otherwise.