#include using namespace std; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout<sputn(d,len)!=len){ os.setstate(ios_base::badbit); } } return os; } istream &operator>>(istream &is,__int128_t &val){ string s; is>>s; val=0; for(int i=0;i<(int)s.size();i++) if(isdigit(s[i])) val=val*10+s[i]-'0'; if(s[0]=='-') val*=-1; return is; } //INSERT ABOVE HERE signed main(){ cin.tie(0); ios::sync_with_stdio(0); __int128_t a,b,c; cin>>a>>b>>c; using D = long double; if(a==0){ if(b==0 and c==0) drop(-1); if(b==0 and c!=0) drop(0); cout<<1<