#include using namespace std; int main(){ int n;cin>>n; if(4 <= n/100 && n/100 <= 5){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }