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