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