s = input()
if 'keyence' in s:
    print('YES')
elif 'k' in s and 'eyence' in s[s.index('k')+1:]:
    print('YES')
elif 'ke' in s and 'yence' in s[s.index('ke')+1:]:
    print('YES')
elif 'key' in s and 'ence' in s[s.index('key')+1:]:
    print('YES')
elif 'keye' in s and 'nce' in s[s.index('keye')+1:]:
    print('YES')
elif 'keyen' in s and 'ce' in s[s.index('keyen')+1:]:
    print('YES')
elif 'keyenc' in s and 'e' in s[s.index('keyenc')+1:]:
    print('YES')
elif 'keyence' in s:
    print('YES')
else:
    print('NO')