import sys
S = input().strip()
keyence = "keyence"

for i in range(len(keyence)):
    if keyence[:i] in S:
        s = S.find(keyence[:i]) + i
        S2 = S[s:]
        if keyence[i:] in S2:
            print("YES")
            sys.exit()

print("NO")
~           