s = input()
search="keyence"
idx=0
flg = False
ans="NO"
if s.find(search)>=0:
    print("YES")
elif:
    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 x == 0:
            if s[x+i:].find(search[i+1:])>=0:
                ans = "YES"
                break
    print(ans)
