#include using namespace std; int main() { //cin读入优化 std::ios::sync_with_stdio(false); int x, y; cin >> x >> y; if ((x >= 60 && y < 60) || (x < 60 && y >= 60)) cout << 1; else cout << 0; return 0; }