#include using namespace std; int main() { auto is_prime = [](int64_t n) { for (int64_t i = 2; i * i <= n; i++) { if (n % i == 0) { return false; } } return true; }; int64_t x, y; cin >> x >> y; int64_t xp = x, yp = y; while (!is_prime(xp)) { xp++; } while (!is_prime(yp)) { yp++; } if ((xp == x) || (yp == y)) { cout << "First" << endl; return 0; } cout << ((((xp - x) + (yp - y)) % 2) ? "First" : "Second") << endl; return 0; }