S = input()

keyword = 'keyence'
cnt = 0
for moji in S:
    if cnt == 7:
        break
    if moji == keyword[0]:
        cnt += 1
        keyword = keyword[1:]

if cnt == 7:
    print('YES')
else:
    print('NO')
