s=list(map(int,input())) print("Yes" if 4<=s[0]<=5 else "No")