#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==0){ if(b==0){ if(c==0){ cout<<-1; }else{ cout<<0; } }else{ cout<<1<0)cout<<0; else if(D=0)cout<<1<