#include using namespace std; int main() { int x; cin >> x; if (x >= 400 && x <= 599) { cout << "Yes" << endl; } else { cout << "No" << endl; } }