#include<iostream> using namespace std; int main() { int x,y,n; cin>>x>>y; n=10*x||20*y; if(x>=10){ cout<<1; }else if(y>=20){ cout<<1; }else{ cout<<0; } }