s = input()
st = 'keyence'
index = 0
delete = []
for i in range(len(s)):
    if index < len(st) and s[i] == st[index]:
        index += 1
    else:
        delete.append(i)
flag = True
if len(delete):
    former = delete[0]
    for i in range(1, len(delete)):
        if delete[i] != former + 1:
            flag = False
        former = delete[i]
if index == len(st) and flag:
    print('YES')
else:
    print('NO')
