import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val s = sc.next

  val keyence = "keyence"

  val sp = (0 to keyence.length).map{k =>
    ( keyence.substring(0,k), keyence.substring(k) )
  }

  val res = if(sp.exists{case (start, end) => s.startsWith(start) && s.endsWith(end)}) "YES" else "NO"

  println(res)
}