a=list(input())
b=list("keyence")
start=0

    
        

if a==b:
    print("YES")
    
else:
    b_riva=list(reversed(b))

    a_riva=list(reversed(a))
    end=0
    while True:
        if a[start]!=b[start]:
            break
        else:
            start+=1
    while True:
        if a_riva[end]!=b_riva[end]:
            break
        else:
            end-=1
    if a[0:start]+a[end:len(a)]==b:

        print("YES")
    else:
        print("NO")
    

