def solve(s):
    t = "keyence"
    n = len(s)
    m = len(t)
    j = 0
    for i in range(n):
        if (j < m) and (t[j] == s[i]):
            j += 1
    return "YES" if (j == m) else "NO"

s = input()
print(solve(s))