s=str(input()) if int(s[0])<4: print("No") else: print("Yes")