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

def output(data = None):
    res = answer(data)
    if res:
        print('YES')
    else:
        print('NO')
output()        
