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