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