s = input()
k = 'keyence'
left = 0
right = 0
for i in range(len(k)):
  if (s[i] == k[i]):
    left += 1
  else:
    break
for i in range(1, len(k) + 1):
  if (s[-i] == k[-i]):
    right += 1
  else:
    break
if ((left == 7) | (left + right == 7)):
  print('YES')
else:
  print('NO')