import sys
s = input()
k = 'keyence'
if (k in s):
  print('YES')
  sys.exit()
left = 0
right = 0
for i in range(len(s)):
  if (s[i] == k[i]):
    left += 1
  else:
    break
for j in range(1, len(s)):
  if (s[-1 * j] == k[-1 * j]):
    right += 1
  else:
    break
if(left + right == len(k)):
  print('YES')
else:
  print('NO')