s=eval(input())



if s == 'keyence':

    print('YES')

    exit()

else:

    for i in range(len(s)):

        for j in range(i,len(s)):

            if s[:i]+s[j:] == 'keyence':

                print('YES')

                exit()

    print('NO')
S = eval(input())



for i in range(len(S)-1):

    for j in range(i,len(S)):

        memo = S[:i]+S[j:]

        #print(memo)

        if memo == 'keyence':

            print('YES')

            exit()

print('NO')
s = eval(input())
if s == "keyence":
    print("YES")
    exit()
else:
    for i in range(len(s)):
        for j in range(i, len(s)):
            if s[:i] + s[j:] == "keyence":
                print("YES")
                exit()
    print("NO")

S = eval(input())
for i in range(len(S) - 1):
    for j in range(i, len(S)):
        memo = S[:i] + S[j:]
        # print(memo)
        if memo == "keyence":
            print("YES")
            exit()
print("NO")

-s = eval(input()) -if s == "keyence": -    print("YES") -    exit() -else: -    for i in range(len(s)): -        for j in range(i, len(s)): -            if s[:i] + s[j:] == "keyence": -                print("YES") -                exit() -    print("NO") +S = eval(input()) +for i in range(len(S) - 1): +    for j in range(i, len(S)): +        memo = S[:i] + S[j:] +        # print(memo) +        if memo == "keyence": +            print("YES") +            exit() +print("NO")