def data_input():
    a = input()
    return a
def answer():
    s = data_input()
    k_list = 'keyence'
    k = 0
    n = len(s)
    slide = 0
    for i in range(n):
        if s[i] == k_list[k]:
            k += 1
        else:
            slide = i
            break
        if k > len(k_list):
            return True
    return k_list[k:] in s[slide:]

res = answer()
if res:
    print('YES')
else:
    print('NO')