s = input()
search = 'keyence'
flg = True

for i in search:
    if i in s:
        idx = s.find(i)
        s = s[idx:]
    else:
        flg = False
        break
               
print('YES' if flg else 'NO')
        

