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

for i in s:
    if 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:
        print("YES")
        exit()

print("NO")

