object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val S = sc.next()
  val splited = 1.until("keyence".length).map("keyence".splitAt)
  val isExists = S.startsWith("keyence") || S.endsWith("keyence") ||
    splited.exists { case (l, r) => S.startsWith(l) && S.endsWith(r) }
  println(if (isExists) "YES" else "NO")
}
