s = input()
len_s = len(s)
w = list("keyence")

ans = "YES"
for i in range(3):
    if s[i] != w[i] or s[len_s - i - 1] != w[6 - i]:
        ans = "NO"
        break
if s[3] != "e" and s[len_s-4] != "e":
    ans = "NO"

print(ans)