object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val S = sc.next()
  val keyence = "keyence"
  val value = keyence.inits.toList.tail.init.zip(
    keyence.tails.toList.tail.init.reverse)
  val isExists = S.startsWith(keyence) ||
    S.endsWith(keyence) ||
    value.exists { case (l, r) => S.startsWith(l) && S.endsWith(r) }
  println(if (isExists) "YES" else "NO")
}
