#include<bits/stdc++.h> using namespace std; int main(){ int S; cin>>S; if(400<=S&&S<600){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }