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