int a,b,c,x,y,z; cin>>a>>b>>c; if(a>60)x=0;else x=1; if(b>60)y=0;else y=1; if(c>60)z=0;else z=1; if(x+y+z==1)cout<<1;else cout<<0;