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

for i in range(len(ans)):
  if S[i] == ans[i]:
    S[i] = ans[i] = ''
  else:
    break
S = list(''.join(S))
ans = list(''.join(ans))

if ans != []:
  for i in range(len(ans)):
    for j in range(len(S)):
      if S[j] != ans[i]:
        S[j] = ''
      else:
        break
    else:
      continue
    break
  S = list(''.join(S))

  for i in range(len(ans)):
    if S[i] == ans[i]:
      S[i] = ans[i] = ''
    else:
      break
  S = list(''.join(S))
  ans = list(''.join(ans))

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