import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    s = input()
    n = len(s)
    key = list("keyence")

    cnt = 0
    flg = True
    for i in range(n):
        if len(key) != 0 and s[i] == key[0]:
            key.pop(0)
            flg = True
        else:
            if flg:
                cnt += 1
                flg = False

    if cnt > 1 or len(key) != 0:
        print("NO")
    else:
        print("YES")


if __name__ == '__main__':
    resolve()
