#include #include #include #include using namespace std; int main(void){ int n,m; cin >> n >> m; if(n/m==2) cout << 2 << endl; else if(n<=m) cout << 1 << endl; else cout << -1 << endl; return 0; }