# include<bits/stdc++.h>
using namespace std;
int main()
{ int yy=0,sx=0;
cout<<"语文成绩:";
cin>>yy;
cout<<"数学成绩:";
cin>>sx;
if(yy>=60&&sx<60)
{cout<<1<<endl;
}
else
if(yy<60&&sx>=60)
{cout<<1<<endl;
}
else
{cout<<0<<endl;}
}