#include #define rep(i,a,b) for(int i=int(a);i> A >> B; int ans; if(A == B)ans = 0; else if(B == 0)ans = 1; else if(A == 0)ans = 2; else ans = -1; cout << ans << endl; }