#include #include using namespace std; using namespace atcoder; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll inf=144499999999994; ll mod=998244353; int main(){ ll y,x; cin >> y >> x; bool o=true; for (ll i = 2; i*i <=y; i++) { if (y%i==0) { o=false; break; } } bool k=true; for (ll i = 2; i*i <=x; i++) { if (x%i==0) { k=false; break; } } if (y==1) { o=false; } if (x==1) { k=false; } if (o&&k) { cout << "Second" << endl; return 0; } ll yy,xx; for (ll i = y+1; i >=0; i++) { bool ok=false; for (ll j = 2; j*j <=i; j++) { if (i%j==0) { ok=true; break; } } if (!ok) { yy=i; break; } } for (ll i = x+1; i >=0; i++) { bool ok=false; for (ll j = 2; j*j <=i; j++) { if (i%j==0) { ok=true; break; } } if (!ok) { xx=i; break; } } if (o) { if (yy==y+1) { cout << "Second" << endl; return 0; } } if (k) { if (xx==x+1) { cout << "Second"<< endl; return 0; } } ll z=yy-y+xx-x-2; if (z%2) { cout << "First" << endl; }else{ cout << "Second"<< endl; } }