#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int X,Y; cin >> X >> Y; if(abs(X-Y) != 1 || min(X,Y)%2 == 0){ cout << "First" << endl; while(true){ if(X == Y) cout << "B" << endl; else if(Y == 0) cout << "A 1 " << X << endl; else if(X == 0) cout << "A 2 " << Y << endl; else if(X > Y){ int plus = 1; if(Y%2 == 0) plus = -1; cout << "A 1 " << X-(Y+plus) << endl; X -= X-(Y+plus); } else{ int plus = 1; if(X%2 == 0) plus = -1; cout << "A 2 " << Y-(X+plus) << endl; Y -= Y-(X+plus); } char c; cin >> c; if(c == 'C' || c == 'D') return 0; int w,n; cin >> w >> n; if(w == 1) X -= n; else Y -= n; } } else{ cout << "Second" << endl; while(true){ char c; cin >> c; if(c == 'C' || c == 'D') return 0; int w,n; cin >> w >> n; if(w == 1) X -= n; else Y -= n; if(X == Y) cout << "B" << endl; else if(Y == 0) cout << "A 1 " << X << endl; else if(X == 0) cout << "A 2 " << Y << endl; else if(X > Y){ int plus = 1; if(Y%2 == 0) plus = -1; cout << "A 1 " << X-(Y+plus) << endl; X -= X-(Y+plus); } else{ int plus = 1; if(X%2 == 0) plus = -1; cout << "A 2 " << Y-(X+plus) << endl; Y -= Y-(X+plus); } } } }