
import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [S] = [(input_raw[0])]
    if S == "keyence":
        print "YES"
        return
    for i in range(len(S)):
        for j in range(len(S)):
            new_S = S[:i] + S[j:]
            if new_S == "keyence":
                print "YES"
                return

    print "NO"

if __name__ == '__main__':
    main()