import re

patterns = [
  r'keyence',
  r'k.*eyence',
  r'ke.*yence',
  r'key.*ence',
  r'keye.*nce',
  r'keyen.*ce',
  r'keyenc.*e',
]

def solve(S):
  for pattern in patterns:
    if re.match(pattern, S):
      return 'YES'
  return 'NO'

S = input()

print(solve(S))