s = input()
r = "keyence"
ans = "NO"
if s[:7] == "keyence": ans = "YES"
elif s[-7:] == "keyence": ans = "YES"
else:
  for i in range(len(s)):
    if s[i] == r[i]: continue
    else:
      break
  a = s[i:]
  for j in range(len(a)):
    if a[j] != r[i]: continue
    else:
      break
  j = len(s)-i-j
  if i+j==len(r): ans = "YES"
print(ans)