import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); X = sc.nextLong(); Y = sc.nextLong(); System.out.println(dfs(0, 0) == 1 ? "First" : "Second"); } long X, Y; // memo[i][j]=1 勝ち // memo[i][j]=0 負け int dfs(int dx, int dy) { if (memo[dx][dy] != -1) return memo[dx][dy]; if (isPrime(X + dx) || isPrime(Y + dy)) return memo[dx][dy] = 1; if (dfs(dx + 1, dy) == 0 || dfs(dx, dy + 1) == 0) { return memo[dx][dy] = 1; } else { return memo[dx][dy] = 0; } } int[][] memo = new int[1000][1000]; { for (int i = 0; i < memo.length; ++i) for (int j = 0; j < memo[i].length; ++j) memo[i][j] = -1; } boolean isPrime(long a) { if (a == 1) return false; for (long i = 2; i * i <= a; ++i) { if (a % i == 0) return false; } return true; } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }