S = input()
if ('keyence' in S
        or (S.find('k') != -1 and S.find('eyence') != -1 and S.find('k') < S.rfind('eyence'))
        or (S.find('ke') != -1 and S.find('yence') != -1 and S.find('ke') < S.rfind('yence'))
        or (S.find('key') != -1 and S.find('ence') != -1 and S.find('key') < S.rfind('ence'))
        or (S.find('keye') != -1 and S.find('nce') != -1 and S.find('keye') < S.rfind('nce'))
        or (S.find('keyen') != -1 and S.find('ce') != -1 and S.find('keyen') < S.rfind('ce'))
        or (S.find('keyenc') != -1 and S.find('e') != -1 and S.find('keyenc') < S.rfind('e'))
    ):
    print('YES')
else:
    print('NO')
