S=input()
if 'keyence' in S:
    print('YES')
    exit()
if 'k' in S:
    if 'eyence' in S[S.index('k')+1:]:
        print('YES')
        exit()
if 'ke' in S:
    if 'yence' in S[S.index('ke')+2:]:
        print('YES')
        exit()
if 'key' in S:
    if 'ence' in S[S.index('key')+3:]:
        print('YES')
        exit()
if 'keye' in S:
    if 'nce' in S[S.index('keye')+4:]:
        print('YES')
        exit()
if 'keyen' in S:
    if 'ce' in S[S.index('keyen')+5:]:
        print('YES')
        exit()
if 'keyenc' in S:
    if 'e' in S[S.index('keyenc')+6:]:
        print('YES')
        exit()
print('NO')