s=input()
if s.count('k')!=0 and s.count('eyence') and s.index('k')<s.index('eyence'):
    print('YES')

elif s.count('ke')!=0 and s.count('yence') and s.index('ke')<s.index('yence'):
    print('YES')
elif s.count('key')!=0 and s.count('ence') and s.index('key')<s.index('ence'):
    print('YES')
elif s.count('keye')!=0 and s.count('nce') and s.index('keye')<s.index('nce'):
    print('YES')
elif s.count('keyen')!=0 and s.count('ce') and s.index('keyen')<s.index('ce'):
    print('YES')
elif s.count('keyenc')!=0 and s.count('e') and s.index('keyenc')<s.index('e'):
    print('YES')
else:
    print('NO')
