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