import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int a = Math.min(x, y); int b = Math.max(x, y); boolean f = true; if (a + 1 == b && a % 2 == 1) { f = false; } if (f) { System.out.println("First"); if (x == y) { System.out.println("B"); x = 0; y = 0; } else if (x > y) { int r = 0; if (y == 0) { r = x; } else if (y % 2 == 0) { r = x - y + 1; } else { r = x - y - 1; } System.out.println("A 1 " + r); x -= r; } else { int r = 0; if (x == 0) { r = y; } else if (x % 2 == 0) { r = y - x + 1; } else { r = y - x - 1; } System.out.println("A 2 " + r); y -= r; } } else { System.out.println("Second"); } while (true) { String s = sc.next(); if (s.equals("C") || s.equals("D")) { break; } if (s.equals("B")) { x = 0; y = 0; } else { int i = sc.nextInt(); int n = sc.nextInt(); if (i == 1) { x -= n; } else { y -= n; } } if (x == y) { System.out.println("B"); x = 0; y = 0; } else if (x > y) { int r = 0; if (y == 0) { r = x; } else if (y % 2 == 0) { r = x - y + 1; } else { r = x - y - 1; } System.out.println("A 1 " + r); x -= r; } else { int r = 0; if (x == 0) { r = y; } else if (x % 2 == 0) { r = y - x + 1; } else { r = y - x - 1; } System.out.println("A 2 " + r); y -= r; } } sc.close(); } }