#include int main () { int x = 0; int y = 0; char op[2] = ""; int i = 0; int xx = 0; int res = 0; int is_fin = 0; res = scanf("%d", &x); res = scanf("%d", &y); if ((x < y && x%2 == 1 && x+1==y) || (x > y && y%2 == 1 && y+1 ==x)) { printf("Second\n"); fflush(stdout); res = scanf("%s", op); if (op[0] == 'A') { res = scanf("%d", &i); res = scanf("%d", &xx); if (i == 1) { x -= xx; } else { y -= xx; } } else if (op[0] == 'B') { x = 0; y = 0; } else { is_fin = 1; } } else { printf("First\n"); fflush(stdout); } while (is_fin <= 0) { if (x == 0) { printf("A 2 %d\n", y); fflush(stdout); } else if (y == 0) { printf("A 1 %d\n", x); fflush(stdout); } else if (x == y) { printf("B\n"); fflush(stdout); } else if (x < y && x+1 == y) { printf("A 2 2\n"); fflush(stdout); y -= 2; } else if (y < x && y+1 == x) { printf("A 1 2\n"); fflush(stdout); x -= 2; } else if (x < y && x%2 == 1) { printf("A 2 %d\n", y-x-1); fflush(stdout); y = x+1; } else if (x < y) { printf("A 2 %d\n", y-x+1); fflush(stdout); y = x-1; } else if (y%2 == 1) { printf("A 1 %d\n", x-y-1); fflush(stdout); x = y+1; } else { printf("A 1 %d\n", x-y+1); fflush(stdout); x = y-1; } res = scanf("%s", op); if (op[0] == 'A') { res = scanf("%d", &i); res = scanf("%d", &xx); if (i == 1) { x -= xx; } else { y -= xx; } } else if (op[0] == 'B') { x = 0; y = 0; } else { is_fin = 1; } } return 0; }