word = 'keyence'
l = input()
now = 0
b = 0
for w in l:
  if word[now] == w:
    now += 1
    if b == 1:
      b = 2
  else:
    if b != 2:
      b = 1
    else:
      break
  if now == len(word):
    print('YES')
    exit()
print('NO')
