//interactive ll g(ll axis,ll x){ if(axis){ wt(1,0,x); }else{ wt(1,x,0); } return rd_ll(); } ll f(ll axis){ ll a=-1d8-1,b=0,c=1d8+1; ll v=g(axis,b); while(a+1c-b){ ll d=a+b>>1; ll w=g(axis,d); if(w<=v){ c=b; b=d; v=w; }else{ a=d; } }else{ ll d=b+c>>1; ll w=g(axis,d); if(w