#include < bits / stdc++.h> using namespace std; int main() { int x, g, m; cin >> x >> g; x /= 10; g /= 20; if (x >= 1) { m = 1;
} if (g >= 1) { m = 1; } if (g < 1 && x < 1) { m = 0; } cout << m;
}