#include using namespace std; void input_judge(vector& a){ char c; cin >> c; if(c == 'A'){ int k, x; cin >> k >> x; --k; a[k] -= x; } else if(c == 'B'){ a[0] = a[1] = 0; } else{ exit(0); } } int main(){ vector a(2); cin >> a[0] >> a[1]; int k = (a[0] > a[1]); if(a[k] & 1 && a[k] + 1 == a[k ^ 1]){ cout << "Second" << endl; input_judge(a); } else{ cout << "First" << endl; } while(true){ if(a[0] == a[1]){ cout << 'B' << endl; a[0] = a[1] = 0; } else{ int k = (a[0] > a[1]); int c = a[k ^ 1]; if(a[k] & 1){ c = a[k ^ 1] - (a[k] + 1); } else if(a[k] > 0){ c = a[k ^ 1] - (a[k] - 1); } a[k ^ 1] -= c; cout << 'A' << ' ' << ((k ^ 1) + 1) << ' ' << c << endl; } input_judge(a); } return 0; }