word = 'keyence'
l = input()
now = 0
start = False
for w in l:
  if word[now] == w:
    now += 1
  else:
    if start:
      return
    else:
      start = True
  if now == len(word):
    print('YES')
    exit()
print('NO')
