S = input()
T = "keyence"
pos = 0
cnt = 0
for i in range(len(S)):
    if T[pos] == S[i]:
        pos += 1
    elif i != 0 and T[pos-1] == S[i-1]:
        cnt += 1
    if cnt == 2:
        print('NO')
        exit()
    if pos == len(T):
        print('YES')
        exit()
print('NO')
