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