#include using namespace std; using G=vector>; typedef long long ll; #define rep(i,l,r) for(int i=(l);i<(r);++i) int main(){ string s; cin>>s; if(s[0]=='4'||s[0]=='5') cout<<"Yes"<