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