S = input()
si = 0
cnt = 0
for s in 'keyence':
  idx = S[si:].find(s)
  if idx == -1:
    print('NO')
    exit()
  else:
    if idx != 0:
      cnt += 1
    if cnt >= 2:
      print('NO')
      exit()
    si = idx+1+si
print('YES')