x = input().split()[0]

test = "keyence"
#  はじめ文字から調べる
i = 0
for y in x:
  if y in test[i]:
    i += 1
  else:
    break
if i == len(test):
  print("YES")
else:
  k = len(test) - 1
  for j in range(len(x)):
    y = x[-(j+1)]
    if y in test[k]:
      k -= 1
    else:
      break
  if i == k+1:
    print("YES")
  else:
    print("NO")