#include <iostream>
using namespace std;

class Time {

    public:
        int hours;      // 小时
        int minutes;    // 分钟

        Time() {
            hours = 0;
            minutes = 0;
        }

        Time(int h, int m) {
            this->hours = h;
            this->minutes = m;
        }

        void show() {
            cout << hours << " " << minutes << endl;
        }

        // write your code here......
        friend bool operator<(const Time &t1, const Time &t2);
        bool operator<(const Time &t2) {
    if (this->hours < t2.hours || (this->hours == t2.hours && this->minutes < t2.minutes)) 
    {
        return true;
    } 
    else 
    {
        return false;
    }
}

};

int main() {
    int h, m;
    cin >> h;
    cin >> m;

    Time t1(h, m);
    Time t2(6, 6);
	
    if (t1<t2) cout<<"yes"; else cout<<"no";
    return 0;
}