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