S=int(input()) if 400<=S<=599: print("Yes") else: print("No")