#include using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1e9; const ll LINF = 1e18; int main(){ int s; cin >> s; if(s/100 == 4 || s/100 == 5) cout << "Yes" << endl; else cout << "No" << endl; return 0; }