S = input().strip()
N = len(S)
x = "keyence"
n = len(x)
if N<n:
    flag = 0
elif S[:n]==x or S[-n:]==x:
    flag = 1
else:
    for i in range(n):
        if S[i]!=x[i]:
            cur = i
            break
    for j in range(1,n+1):
        if S[-j]!=x[-j]:
            cur2 = N-j
            break
    if S[:cur]+S[cur2+1:]==x:
        flag = 1
    else:
        flag = 0
if flag==1:
    print("YES")
else:
    print("NO")