#include using namespace std; #define int long long bool IsPrimeNumber(int n){ if(n == 2 || n == 3)return true; if(n%2 == 0 || n%3 == 0|| n <= 4) return false; for(int i = 6; (i-1)*(i-1) <= n; i+=6) if(n%(i-1) == 0 || n%(i+1) == 0) return false; return true; } bool huga(int Y, int X, int k){//cout<>z; bool B= !k; if(!IsPrimeNumber(Y+1)&&!IsPrimeNumber(X)) if(huga(Y+1,X,!k)==k)B=k; if(!IsPrimeNumber(X+1)&&!IsPrimeNumber(Y)) if(huga(Y,X+1,!k)==k)B=k; return B; } bool hoge(int Y, int X){ int tempa = 0, tempb=0; while(!IsPrimeNumber(++X)) tempa++; while(!IsPrimeNumber(++Y)) tempb++; //cout<>Y>>X; cout<<(hoge(Y,X)?"First":"Second")<