S = input()

keyword = 'keyence'
cnt = 0

while S:
    if cnt == 7:
        break

    moji = S[0]
    S = S[1:]
    if moji == keyword[0]:
        cnt += 1
        keyword = keyword[1:]

if (len(S) != 0)or(len(keyword) != 0):
    print('NO')
elif cnt == 7:
    print('YES')
else:
    print('NO')
