#include using namespace std; #define rep(i, a, b) for (int i = a; i < (b); i++) int main() { int n; cin >> n; vector a(n); rep(i, 0, n) cin >> a[i]; int xr = 0; rep(i, 0, n) xr ^= a[i]; int res = 0; // xorが0の時のみ後手必勝 if (xr == 0) { cout << "Second" << endl; int i, x; cin >> i >> x; cin >> res; i--; xr ^= a[i]; a[i] -= x; xr ^= a[i]; } else { cout << "First" << endl; } while(res == 0) { // xorの最下位bitを選び、それを超えるA[i] を選ぶ int select = 0; rep(i, 0, 20) { if((xr >> i) & 1) { select = 1 << i; break; } } rep(i, 0, n) { if(a[i] >= select) { cout << i + 1 << " " << select << endl; xr ^= a[i]; a[i] -= select; xr ^= a[i]; break; } } cin >> res; if(res == -1 || res == 1) { break; } int i, x; cin >> i >> x; i--; cin >> res; xr ^= a[i]; a[i] -= x; xr ^= a[i]; } }