S = input()
length = len(S)
if 'keyence' in S: print("YES")
elif 'keyenc' in S :
    place = S.find('keyenc')+6
    S.find('e',place,length)
    print("YES")
elif 'keyen' in S :
    place = S.find('keyen')+5
    S.find('ce',place,length)
    print("YES")
elif 'keye' in S :
    place = S.find('keye')+4
    S.find('nce',place,length)
    print("YES")
elif 'key' in S :
    place = S.find('key')+3
    S.find('ence',place,length)
    print("YES")
elif 'ke' in S :
    place = S.find('ke')+2
    S.find('yence',place,length)
    print("YES")
elif 'eyence' in S :
    place = S.find('eyence')-1
    S.find('k',0,place)
    print("YES")
else : print("NO")