def inpl(): return list(map(int, input().split()))
S = input()
x = "keyence"
OK = False
for i in range(1, 8):
    a = x[:i]
    b = x[i:]
    for j in range(len(S)):
        if S[j:j+i] ==  a:
            for k in range(j+i, len(S)):
                if S[k: k+7-i] == b:
                    print("YES")
                    exit()
else:
    print("NO")