#include #include using namespace std; using namespace atcoder; typedef long long int ll; typedef long double ld; typedef vector vi; typedef vector vvi; typedef vector vvvi; typedef vector vvvvi; typedef vector vb; typedef vector vvb; typedef vector vvvb; typedef vector vvvvb; typedef pair pi; typedef pair ppi; typedef pair pppi; typedef pair ppppi; #define FOR(i,l,r) for(ll i=l;i=l;i--) #define RREP(i,n) RFOR(i,0,n) #define ALL(x) x.begin(),x.end() #define F first #define S second #define BS(A,x) binary_search(ALL(A),x) #define LB(A,x) (ll)(lower_bound(ALL(A),x)-A.begin()) #define UB(A,x) (ll)(upper_bound(ALL(A),x)-A.begin()) #define COU(A,x) (UB(A,x)-LB(A,x)) #define sz(c) ((ll)(c).size()) /* #include namespace mp=boost::multiprecision; using Bint=mp::cpp_int; */ templateusing min_priority_queue=priority_queue,greater>; templateostream&operator<<(ostream&os,pairp){os<istream&operator>>(istream&is,pair&p){is>>p.F>>p.S;return is;} templateostream&operator<<(ostream&os,vectorv){REP(i,sz(v))os<istream&operator>>(istream&is,vector&v){for(T&in:v)is>>in;return is;} templatebool chmax(T&a,T b){if(abool chmin(T&a,T b){if(b(a,b); auto y=convolution(a,b); auto z=convolution(a,b); vectorret(sz(a)+sz(b)-1); REP(i,sz(ret)){ ll v1=(y[i]-x[i])*m1_inv_m2%m2;if(v1<0)v1+=m2; ll v2=(z[i]-(x[i]+m1*v1)%m3)*m12_inv_m3%m3;if(v2<0)v2+=m3; ret[i]=(x[i]+m1*v1+m12_mod*v2)%mod; } return ret; } const ld EPS=1e-8; //* using mint=modint998244353; const ll mod=998244353; //*/ /* using mint=modint1000000007; const ll mod=1000000007; //*/ //using mint=modint; //* typedef vector vm; typedef vector vvm; typedef vector vvvm; typedef vector vvvvm; ostream&operator<<(ostream&os,mint a){os<>(istream&is,mint&a){int x;is>>x;a=mint(x);return is;} //*/ int main(){ ll N;cin>>N; const ld R=5e8; auto query=[](ld x,ld y){ printf("1 %.8Lf %.8Lf\n",x,y); char p;double u,v;cin>>p>>u>>v; if(p=='?'||p=='0')return 0.; if(p=='-')return -u/v; return u/v; }; ld l=0,r=acos(-1); vectorA1(100),A2(100); REP(i,100){ ld m=(l*(100-i)+r*i)/100; A1[i]=query(R*cos(m),R*sin(m)); A2[i]=query(-R*cos(m),-R*sin(m)); } auto t1=min_element(ALL(A1))-A1.begin(); auto t2=min_element(ALL(A2))-A2.begin(); auto m1=(l*(100-t1)+r*t1)/100; auto m2=(l*(100-t2)+r*t2)/100+r; ld x1=R*cos(m1),y1=R*sin(m1); ld x2=R*cos(m2),y2=R*sin(m2); ld c1=A1[t1],c2=A2[t2]; REP(i,50){ ld x3=(2*x1+x2)/3,y3=(2*y1+y2)/3; ld x4=(x1+2*x2)/3,y4=(y1+2*y2)/3; ld c3=query(x3,y3); ld c4=query(x4,y4); if(c1c2)x1=x4,y1=y4,c1=c4; else if(c2