#include <iostream> using namespace std; int main(){ bool A; cin >> A; if (0 <= A <= 10^6) cout << "YES"; else cout << "NO"; return 0; }