use std::io::*;
use std::str::FromStr;

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("filed to read char") as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
    let s:String = read();
    let chars:Vec<char> = s.chars().collect();
    let mut v = Vec::new();
    let mut index = 0;
    for i in "keyence".chars() {
        if let Some(x) = chars[index..].iter().position(|&x| x == i) {
            v.push(x);
            index = x;
        }
    }
    if v.len() == 7 {
        println!("YES");
    } else {
        println!("NO");
    }
}
