S=input()
N=len(S)
T="keyence"

for i in range(N):
  for j in range(7):
    if S[:i].count(T[:j]) >=1:
      if S[i:].count(T[j:]) >=1:
        ans="YES"
        print("YES")
        exit()
else:
  print("NO")