S=input()

ans='NO'
if 'keyence'in S:
    ans='YES'
elif S.find('k')>=0 and S.find('k')<S.rfind('eyence'):
    ans='YES'
elif S.find('ke')>=0 and S.find('ke')<S.rfind('yence'):
    ans='YES'
elif S.find('key')>=0 and S.find('k')<S.rfind('ence'):
    ans='YES'
elif S.find('keye')>=0 and S.find('k')<S.rfind('nce'):
    ans='YES'
elif S.find('keyen')>=0 and S.find('k')<S.rfind('ce'):
    ans='YES'
elif S.find('keyenc')>=0 and S.find('k')<S.rfind('e'):
    ans='YES'

print(ans)