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

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