#include<iostream> using namespace std; int main () { int x,y; cin>>x>>y; if(x>9||y>19) { printf("1"); } else { printf("0"); } }