#include using namespace std;\ int main(void) { int n; cin >> n; n /= 100; cout << ((n == 4 || n == 5) ? "Yes" : "No") << endl; return 0; }