Problem:
Score : 1000 points

Problem Statement

There are N integers written on a blackboard. The i-th integer is A_i, and the greatest common divisor of these integers is 1.

Takahashi and Aoki will play a game using these integers. In this game, starting from Takahashi the two player alternately perform the following operation:

Select one integer on the blackboard that is not less than 2, and subtract 1 from the integer.

Then, divide all the integers on the black board by g, where g is the greatest common divisor of the integers written on the blackboard.

The player who is left with only 1s on the blackboard and thus cannot perform the operation, loses the game.
Assuming that both players play optimally, determine the winner of the game.

Constraints

1 ≦ N ≦ 10^5

1 ≦ A_i ≦ 10^9

The greatest common divisor of the integers from A_1 through A_N is 1.

Input

The input is given from Standard Input in the following format:

N
A_1 A_2 … A_N

Output

If Takahashi will win, print First. If Aoki will win, print Second.

Sample Input 1

3
3 6 7

Sample Output 1

First

Takahashi, the first player, can win as follows:

Takahashi subtracts 1 from 7. Then, the integers become: (1,2,2).

Aoki subtracts 1 from 2. Then, the integers become: (1,1,2).

Takahashi subtracts 1 from 2. Then, the integers become: (1,1,1).

Sample Input 2

4
1 2 4 8

Sample Output 2

First

Sample Input 3

5
7 8 8 8 8

Sample Output 3

Second

Solution in C++14 (GCC 5.4.1) (judge verdict: Wrong Answer)

#include <bits/stdc++.h>
#define FOR(i,a,b) for(ut i=(a);i<(ut)(b);i++)
#define REP(i,b) FOR(i,0,b)
#define ALL(c) c.begin(),c.end()
#define PB push_back
#define cat //cout << __LINE__ << endl;
using namespace std;
typedef long long LL;
typedef double ld;
typedef LL ut;
typedef vector<ut> VI;
typedef pair<ut,ut> pr;
const int SIZE=5+3*1e5;
const int INF=10+1e9;
const LL p =7+1e9;
const LL c= 1<<30;
LL A[SIZE];
int N;
LL gcd(LL a, LL b){
	if(a%b==0) return b;
	else return gcd(b,a%b);
}
bool solve(){
	LL gcds=c;
	LL sum=0;
	int odds=0;
	bool isEnd=false;
	REP(i,N){
		sum+=A[i]-1;	
		if(A[i]%2) odds++;		
		if(A[i]==1) isEnd=true;
		else gcds=gcd(gcds,A[i]/2*2);
	}	
	sum%=2;
	bool isFirst=sum;
	if(N==2 or isEnd or odds>=2 ) return isFirst;
	if(isFirst) return isFirst;

	REP(i,N)
		A[i]/=gcds;	
	return !solve();
	
}
int main(){
	cin >> N;
	REP(i,N)
		cin >> A[i];	
	if(solve()) cout << "First" << endl;
	else cout << "Second" << endl;
	return 0;
}