#include using namespace std; int main(){ int n, k,x,maxa,maxb; cin>>n>>k; //read the number of stories and eggs string response; maxa=n; maxb=1; x=(maxa+maxb)/2; while(response != "exit"&&k>-1) { if(maxa==maxb) {cout<<"answer"<<" "<> response; if(response == "broke") maxa=x-1; else maxb=x+1; x=(maxa+maxb)/2; } return 0; }