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