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:
            c= var.find("e",b,len(var))+1
            if "y" in var and var.find("y",b,len(var))+1 > c:
                d= var.find("y",b,len(var))+1
                if "e" in var and var.find("e",b,len(var))+1 > d:
                     e= var.find("e",b,len(var))+1
                     if "n" in var and var.find("n",b,len(var))+1 > e:
                         f= var.find("n",b,len(var))+1
                         if "c" in var and var.find("c",b,len(var))+1 > f:
                             g= var.find("c",b,len(var))+1
                             if "e" in var and var.find("e",b,len(var))+1 > g:
                                 flg = True
if flg:
    print("YES")
else:
    print("NO")