#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; int Q; cin >> Q; int N,M; cin >> N >> M; if(s == "Bob") swap(N,M); vector> X(N); int idx = 0; for(auto &[x,p] : X) cin >> x,p = idx++; sort(X.begin(),X.end()); auto share = [&](int pos) -> int { cout << "share " << pos+1 << endl; int ret; cin >> ret; if(ret == -1) assert(false); return ret; }; auto answer = [&](int x) -> void {cout << "answer " << x << endl; exit(0);}; int low = share(X.at(0).second),high = share(X.back().second); if(low == high && X.at(0).first == X.back().first){ if(N > M) answer(X.at(0).first); else answer(low); } else if(low == high){ for(int i=0; i