#include #define FOREACH(it,c) for( __typeof((c).begin()) it=(c).begin();it!=(c).end();it++) #define FOR(a,b,c) for(int a=(b);a<=(c);++a) #define ROF(a,b,c) for(int a=(b);a>=(c);--a) #define dbg(x) cout<<#x<<" = "<<(x)<<"\n"; #define pii pair #define pll pair< ll, ll > #define pull pair< ull, ull > #define mp make_pair #define pb push_back #define fi first #define se second #define ll long long #define ull unsigned long long #define tata NULL using namespace std; const int NMAX = 1000004; int main() { #ifndef ONLINE_JUDGE freopen("data.in","r",stdin); #endif // ONLINE_JUDGE cin.sync_with_stdio(false); cin.tie(tata); while(true) { int L = 0,R = 199,mid,val, i; while(L <= R) { mid = (L+R)/2; cout<> val; if(val==0) return 0; if(val<0){ i = mid; L = mid+1; } else R = mid-1; } L = 0, R = 199; while(L <= R) { mid = (L+R)/2; cout<> val; if(val==0) return 0; if(val<0) L = mid+1; else R = mid-1; } } return 0; }