#include using namespace std; void printQ(int x, int y) { if (x == y) { cout << "B" << endl; return; } int id = 1; if (x < y) { id ++; swap(x, y); } if (y == 0) { cout << "A " << id << " " << x << endl; return; } int d = x - y; if (y & 1) { d --; } else { d ++; } cout << "A " << id << " " << d << endl; } int main() { int X, Y; cin >> X >> Y; if (abs(X - Y) == 1 && (X + Y) & 3 == 3) { cout << "Second" << endl; } else { cout << "First" << endl; printQ(X, Y); } while (true) { char c; cin >> c; if (c == 'C') { return 0; } else if (c == 'D') { return 0; } else if (c == 'B') { return 0; } else { assert(c == 'A'); int id, d; cin >> id >> d; ((id - 1) ? Y : X) -= d; } printQ(X, Y); } }