S = input()

for i in range(len(S)+1):
    for j in range(len(S)+1):
        for k in range(len(S)+1):
            for l in range(len(S)+1):
                #print(S[i:j] + S[k:l])
                if S[i:j] + S[k:l] == "keyence":
                    print("YES")
                    exit()
                    
print("NO")