#!/bin/awk -Mf

{
    S=$1
    T="keyence"
    t = index(S,T)
    if(t==1 || t == length(S)-6){
        print "YES"
        exit;
    }
    for(i=1;i<length(S);i++){
        for(k=i+1;k<length(S);k++){
            s1 = substr(S,1,i);
            s2 = substr(S,k,length(S));
            ss = s1 s2
            if(ss == T){
                print "YES"
                exit;
            }
        }
    }
    print "NO"
}
