#!/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<7;i++){
        t1 = index(S,substr(T,1,i))
        if(t1!=1)continue
        s = substr(T,i+1,7-i)
        t2 = index(substr(S,length(t1),length(S)),s)
        if(t2!=length(S)-length(s)+1)continue
        print "YES"
        exit
    }
    print "NO"
}
