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