s = input()
key = 'keyence'

pos = 0
t = key[pos]
for c in s:
    if c == t:
        pos += 1
        if pos == len(key):
            print('YES')
            break
        t = key[pos]
else:
    print('NO')
