#include <iostream> using namespace std; class Time { private: int hours; int minutes; public: Time(int x,int y):hours(x),minutes(y){} bool operator<(Time& t) { if(this->hours*60+this->minutes<t.hours*60+t.minutes) { return true; } else { return false; } } }; int main() { int a,b; cin>>a>>b; Time p1(a,b); Time p2(6,6); if(p1<p2) { cout<<"yes"<<endl; } else { cout<<"no"<<endl; } }