#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) bool isprime(long long n) { if (n < 2) return false; if (n == 2) return true; if (n % 2 == 0) return false; for (long long i = 3; i * i <= n; i += 2) if (n % i == 0) return false; return true; } bool check(long long y, long long x) { if (isprime(y) && isprime(x)) return false; long long xt = x, yt = y; if (isprime(y)) { if (isprime(y+1)) return false; ++yt; } if (isprime(x)) { if (isprime(x+1)) return false; ++xt; } while (!isprime(xt+1)) xt++; while (!isprime(yt+1)) yt++; if (((xt - x) + (yt - y)) % 2) return true; else return false; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); long long x, y; cin >> y >> x; if (check(y, x)) cout << "First" << endl; else cout << "Second" << endl; return 0; }