S = input()

result = ''
for v in S:
    if result == 'keyence':
        break
    if result == '' and v == 'k':
        result += 'k'
    if result == 'k' and v == 'e':
        result += 'e'
    if result == 'ke' and v == 'y':
        result += 'y'
    if result == 'key' and v == 'e':
        result += 'e'
    if result == 'keye' and v == 'n':
        result += 'n'
    if result == 'keyen' and v == 'c':
        result += 'c'
    if result == 'keyenc' and v == 'e':
        result += 'e'
if result == 'keyence':
    print('YES')
else:
    print('NO')
