S = list(input())
L = len(S)
key = list("keyence")
if S[0:7] == key:
    print("YES")
    exit()

if S[L-7:] == key:
    print("YES")
    exit()

for i in range(1,6):
    if S[0:i] == key[0:i] and S[L-7+i:] == key[i:]:
        print("YES")
        exit()
print("NO")