S = input()

A = ["k","ke","key","keye","keyen","keyenc"]
A = list(reversed(A))
B = ["eyence","yence","ence","nce","ce","e"]
ans = "NO"

if "keyence" in S :
    ans = "YES"
else :
    for i in range(len(A)) :
        if S[:len(A[i])] == A[i] :
            if (B[i] in S) and (S[-len(B[i]):] == B[i]) :
                ans = "YES"
            else :
                ans = "NO"
print(ans)
