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