#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){ 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){cout << "A 1 " << X-(Y+1) << endl; X -= X-(Y+1);} else{cout << "A 2 " << Y-(X+1) << endl; Y -= Y-(X+1);} 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){cout << "A 1 " << X-(Y+1) << endl; X -= X-(Y+1);} else{cout << "A 2 " << Y-(X+1) << endl; Y -= Y-(X+1);} } } }