#include using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define ALL(v) begin(v),end(v) template inline bool chmax(A & a, const B & b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(A & a, const B & b) { if (a > b) { a = b; return true; } return false; } using ll = long long; using pii = pair; constexpr ll INF = 1ll<<30; constexpr ll longINF = 1ll<<60; constexpr ll MOD = 1000000007; constexpr bool debug = false; //---------------------------------// int main() { int Y, X; cin >> Y >> X; auto is_prime = [](int i) { if (i <= 1) return false; for (int j = 2; j * j <= i; ++j) if (i % j == 0) return false; return true; }; auto nex_prime = [&](int i) { while (!is_prime(i)) ++i; return i; }; const int ey1 = nex_prime(Y), ey2 = nex_prime(ey1 + 1); const int ex1 = nex_prime(X), ex2 = nex_prime(ex1 + 1); map dp; auto dfs = [&](auto self, int y, int x) -> bool { const pii cur = {y, x}; if (y == ey1 || y == ey2 || x == ex1 || x == ex2) return false; if (dp.count(cur)) return dp[cur]; if (self(self, y + 1, x) || self(self, y, x + 1)) return dp[cur] = false; return dp[cur] = true; }; if (dfs(dfs, Y + 1, X) || dfs(dfs, Y, X + 1)) puts("First"); else puts("Second"); }