S = list(input())
ans = ['k','e','y','e','n','c','e']

for s_ in S:
  for ans_ in ans:
    if s_ == ans_:
      ans.remove(s_)
    else:
      break

for s_ in S:
  for ans_ in ans:
    if s_ == ans_:
      break

for s_ in S:
  for ans_ in ans:
    if s_ == ans_:
      ans.remove(s_)
    else:
      break

if ans == []:
  print('YES')
else:
  print('NO')