#include using namespace std; #define int long long signed main(){ int A,B; cin>>A>>B; if(A > 0 && B != 0){ cout<<-1<