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