S=raw_input()
key="keyence"

num=0
if S[0]=="k":
    num=1
    for i in range(1,7):
        if S[i]==key[i]:
            num+=1
        else:
            break
    if num==7:
        print "YES"
    else:
        for i in range(1,8-num):
            if S[-i]==key[-i]:
                num+=1
            else:
                break
        if num==7:
            print "YES"
                    
if num<7:
    for i in range(1,8):
        if S[-i]==key[-i]:
            num+=1
        else:
            break
    if num==7:
        print "YES"
    else:
        print "NO"