#include using namespace std; #define int long long using ld=long double; signed main(){ int a,b,c;cin>>a>>b>>c; if(!a){ if(!b){ if(!c)cout<<-1<0){ cout<<2<