var =input()
b =""
flg = False

if "k" in var:
    b= var.find("k")+1
    if "e" in var and var.find("e",b,len(var))+1 > b:
            b= var.find("e",b,len(var))+1
            if "y" in var and var.find("y",b,len(var))+1 > b:
                b= var.find("y",b,len(var))+1
                if "e" in var and var.find("e",b,len(var))+1 > b:
                     b= var.find("e",b,len(var))+1
                     if "n" in var and var.find("n",b,len(var))+1 > b:
                         b= var.find("n",b,len(var))+1
                         if "c" in var and var.find("c",b,len(var))+1 > b:
                             b= var.find("c",b,len(var))+1
                             if "e" in var and var.find("e",b,len(var))+1 > b:
                                 flg = True
if flg:
    print("YES")
else:
    print("NO")