#include<iostream> using namespace std; int main(){ int goodluck; int encouragement; cin >> goodluck >> encouragement; if (goodluck>=10 || encouragement>=20){ cout << "1"; } else { cout << "0"; } return 0; }