#include #define rep(i,a,b) for(int i=a;i<(b);++i) #define erep(i,a,b) for(int i=a;i<=(int)(b);++i) #define per(i,a,b) for(int i=(a);i>(b);--i) #define eper(i,a,b) for(int i=(a);i>=b;--i) #define pb push_back #define mp make_pair #define INF (1<<30)-1 #define MOD 1000000007 #define all(x) (x).begin(),(x).end() #define vii vector #define vll vector using namespace std; typedef long long ll; typedef pair Pii; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b makePrimes(int n) { vector res, pr(n + 1, 1); pr[0] = pr[1] = 0; rep(p, 2, sqrt(n) + 2) if (pr[p]) for (int x = p * 2; x <= n; x += p) pr[x] = 0; rep(p, 2, n + 1) if (pr[p]) res.push_back(p); return res; } bool isPrime(int x) { if (x < 2) return false; else if (x == 2) return true; else if (x % 2 == 0) return false; double sq = sqrt(x); for (int i = 3; i <= sq; i += 2) { if (x % i == 0) { return false; } } return true; } int X, Y; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> Y >> X; auto primes = makePrimes(10000000); int rx, upy; rx = *lower_bound(all(primes), X); upy = *lower_bound(all(primes), Y); if (isPrime(X)) { cout << "Second" << endl; return 0; } else if (isPrime(Y)) { cout << "First" << endl; return 0; } int diff_y = upy - Y - 1, diff_x = rx - X - 1; if (diff_y > diff_x) cout << "First" << endl; else cout << "Second" << endl; return 0; }