def main(): s = int(input()) if s // 100 in [4, 5]: print("Yes") else: print("No") if __name__ == "__main__": main()