s=list(input()) lis=["y","p","r","t","i","9","0"] lis1=["k","o","e"] for i in lis: if s.count(i)!=1: print("No") exit() for i in lis1: if s.count(i)!=2: print("No") exit() print("Yes")