S = input()
L = len(S)

for i in range(L):
    count = 0
    for j in range(i, L):

        if (i == 0 and count == 0):
            s = S[1:]
        elif(i == L - 1):
            s = S[:i]
        else:
            s = S[:i] + S[i + count:]

        if ('keyence' not in s):
            count += 1
        else:
            print('YES')
            exit()

print('NO')
