S = input()
ans = "No"
for i in range(len(S)) :
    head = S[:i]
    for j in range(i,len(S)) :
        tail = S[j:]
        
        string = head + tail
        if string == "keyence" :
            ans = "Yes"
            break
print(ans)
