using namespace std;
int main(){ int n; cin >> n; if (n <= 1000){ cout << "YES"; } else{ cout << "NO"; } return 0; }