s = int(input()) print("Yes") if 4 <= s//100 <= 5 else print("No")