s = input()
flag = False
r = "keyence"
for i in range(len(s)):
  #print(s[:i+1], r[:i+1])
  #print(s[i+1:], r[i+1:])
  if s[:i+1].find(r[:i+1])!=-1 and s[i+1:].find(r[i+1:])!=-1:
    flag = True
    break
if flag:
  print("YES")
else:
  print("NO")
    