S = input()
N = len(S)
if S == "keyence" or S[1:] == "keyence" or S[:N-1] == "keyence":
    print("YES")
    exit(0)

for k in range(N-1):
    for l in range(k+1,N):
        if S[:k]+S[l+1:] == "keyence":
            print("YES")
            exit(0)
print("NO")