num =int(input()) if num//100==4 or num//100==5: print("Yes") else: print("No")