s = input()
search="keyence"
idx=0
flg = False
ans="NO"
for i in range(7):
    x=s.find(search[0:i+1])
    #print("ps=%s, ns=%s, reduce=%s" %(search[0:i+1], search[i+1:], s[x+i+1:]))
    if x == -1:
        break
    if s[x+i+1:].find(search[i+1:])>=0:
        ans = "YES"
        break
print(ans)