#![allow(unused_macros)]
#![allow(dead_code)]
#![allow(unused_imports)]

use itertools::Itertools;
use proconio::*;
use text_io::*;

const U_INF: usize = 1 << 60;
const I_INF: isize = 1 << 60;

fn main() {
    let s: String = read!();
    let s = s.chars().collect_vec();
    let vec = "keyence".chars().collect_vec();
    let mut i = 0;
    let mut flag = true;

    for c in s {
        if i == 7 {
            break;
        }

        if c == vec[i] && flag {
            i += 1;
            flag = false;
        }
    }

    println!("{}", if i >= 7 { "YES" } else { "NO" });
}
