#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define all(x) (x).begin(),(x).end() #define rep(i,m,n) for(int i = m;i < n;++i) #define pb push_back #define fore(i,a) for(auto &i:a) #define rrep(i,m,n) for(int i = m;i >= n;--i) #define INF INT_MAX/2 using namespace std; using ll = long long; using R = double; using Data = pair>; const ll MOD = 1e9 + 7; const ll inf = 1LL << 50; struct edge { ll from; ll to; ll cost; }; ll y, x, numy, numx; map, ll>memo; bool prime(ll n) { if (n == 1) { return false; } for (ll i = 2; i*i <= n; i++) { if (n%i == 0) { return false; } } return true; } ll dfs(ll Y, ll X,int turn) { if (Y == numy || X == numx) { return turn; } if (dfs(Y + 1, X, !turn) == turn || dfs(Y, X + 1, !turn) == turn) { return memo[{Y,X,turn}] = turn; }else { return memo[{Y,X,turn}] = !turn; } } int main() { cin >> y >> x; numy = y; while (1) { if (prime(numy)) { break; } numy++; } numx = x; while (1) { if (prime(numx)) { break; } numx++; } if (dfs(y,x,0) == 0)cout << "First" << endl; else cout << "Second" << endl; return 0; }