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