#include<iostream> #include<cstdlib> #include<cstdio> usingnamespacestd; inlineintread() { int f = 1, x = 0; char ch;
do{ ch = getchar(); if (ch == '-') f = -1; }while(ch < '0' || ch > '9'); do{ x = x * 10 + ch - '0'; ch = getchar(); }while(ch >= '0' && ch <= '9'); return f * x; } constint N = 1e5;
int n; int a[N + 1];
inlineintgcd(int x, int y) { if (!y) return x; return gcd(y, x % y); } inlineintcheck() { int sum = 0; bool flag = false;
for (int i = 1; i <= n; i++) { if (a[i] == 1) flag = true; if ((a[i] & 1) == 0) sum++; } if (sum & 1) { return1; } else { if (flag) return2; if (sum == n - 1) { int g; if (a[1] & 1) g = a[1] - 1; else g = a[1]; for (int i = 2; i <= n; i++) g = gcd(g, a[i] & 1?a[i] - 1:a[i]); for (int i = 1; i <= n; i++) a[i] /= g; return check() == 1?2:1; } else { return2; } } } intmain() { n = read(); for (int i = 1; i <= n; i++) a[i] = read(); if (n == 1) { printf("%s\n", a[1] == 1?"Second":"First"); return0; }