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