#include using namespace std; using ll=long long; int main(){ ll h,m; cin>>h>>m; if(h<7){ cout<<"Yes"<