N=int(input()) if 400<=N<600: print("Yes") else: print("No")