s=input()
a="keyence"
b=0
flug=0

for i in range(len(s)):
    if s[i]==a[b]:
        b+=1
        if flug==1:
            flug=2
    else:
        if flug==0:
            flug=1
        elif flug==2:
            print("NO")
            exit()
    
    if b==7:
        if flug==0:
            print("YES")
            exit()
        else:
            if i+1==len(s):
                print("YES")
                exit()
            else:
                print("NO")
                exit()

print("NO")

