s = gets.chomp

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

ret = patterns.any? {|pat| s =~ pat} ? 'YES' : 'NO'
puts ret