s=input()
a=["k","e","y","e","n","c","e"]
l=len(s)
n=0
while n<l:
    key=0
    flag=0
    for i in range(l):
        if n<=i:
            if flag==0 and a[key]==s[i]:
                key+=1
                if key==0:
                    n=i
                if key==6:
                    print("YES")
                    exit()
            elif flag==0 and key==0:
                pass
            elif flag==0:
                flag=1
            elif flag==1 and a[key]==s[i]:
                key+=1
                flag=2
                if key==6:
                    print("YES")
                    exit()
            elif flag==1:
                pass
            elif flag==2 and a[key]==s[i]:
                key+=1
                if key==6:
                    print("YES")
                    exit()
            else:
                break
    n+=1
print("NO")
