#include using namespace std; int main(){ string s; cin >> s; if(s[0] == '4' || s[0] == '5') cout << "Yes" << endl; else cout << "No"<< endl; }