#include using namespace std; using ll=long long; int main(){ int x,y,z; { int cnt=0; map mp; while(1){ cout<<"? A"<>z; mp[z]++; cnt++; if(cnt>=7&&mp[z]*2>cnt){ x=z; break; } } } { int cnt=0; map mp; while(1){ cout<<"? B"<>z; mp[z]++; cnt++; if(cnt>=7&&mp[z]*2>cnt){ y=z; break; } } } if(y==1){ cout<<"! A"< mp; if(k==1){ cout<<"+ A A C"<>z; assert(z==0); bool ok=false; while(1){ if(now==1){ cout<<"? C"<>z; assert(z!=-1); mp[z]++; cnt++; if(mp[x*k*2]>=4){ ok=true; break; }else if(cnt==7){ break; } } if(ok){ now=1-now; k*=2; } } while(k>z; assert(z==0); bool ok=false; map mp; int cnt=0; while(1){ if(now==1)cout<<"? C"<>z; assert(z!=-1); mp[z]++; cnt++; if(mp[x*(k+1)]>=4){ ok=true; break; }else if(cnt==7){ break; } } if(ok){ now=1-now; k++; } } if(now==1)cout<<"! B"<