S = input()
N = len(S)

if S == "keyence":
    print("YES")
    exit()

for i in range(N):
    for j in range(i, N):
        s = S[:i] + S[j + 1:]
        print(s)
        if s == "keyence":
            print("YES")
            exit()

print("NO")
