#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int h, r;
    cin >> h >> r;
    if (r + h > 0) cout << 1 << '\n';
    if (r + h == 0) cout << 0 << '\n';
    if (r + h < 0) cout << -1 << '\n';
}
