S = input()
T = "keyence"
lenS = len(S)
lenT = len(T)

i = 0
j = 0

while S[i] == T[j]:
    i += 1
    j += 1
    if i == lenS or j == lenT:
        break

if j == lenT:
    print("YES")
    exit(0)
if i == lenS:
    print("NO")
    exit(0)

while S[i] != T[j]:
    i += 1
    if i == lenS:
        print("NO")
        exit(0)

if S[i:] == T[j:]:
    print("YES")
else:
    print("NO")

