S = input()
K = "keyence"
for i in range(len(K)):
  print(S[:i], S[(i-(len(K))):])
  if (K[:i] == S[:i]) and (K[(i-(len(K))):] == S[(i-(len(K))):]):
    print("Yes")
    exit()
if K == S[:len(K)] or K == S[(-len(K)):]:
  print("Yes")
  exit()
print("No")
