s = input()

k = []
key = 'keyence'
for i in range(7):
    k.append([key[:i],key[i:]])

flag = False
for i in k:
    if i[0] in s and i[1] in s:
        flag = True
if flag:
    print('YES')
else:
    print('NO')