#!/bin/awk -Mf

{
    S=$1
    T="keyence"
    for(i=1;i<7;i++){
        t1 = index(S,substr(T,1,i))
        if(!t1)continue
        t2 = index(substr(S,t1,length(S)),substr(T,i+1,7-i))
        if(!t2)continue
        print "YES"
        exit
    }
    print "NO"
}
