data = input()

def check(str):
    comp_s = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
    ng_flag = False
    count = 0
    s_count = 0
    flag = False
    for s in str:
        if 6 < s_count:
            if not ng_flag:
                count += 1
                ng_flag = True
            continue
        elif s == comp_s[s_count]:
            s_count += 1
            ng_flag = False
        else:
            if not ng_flag:
                count += 1
                ng_flag = True

    if len(comp_s) == s_count and count <= 1:
        flag = True

    return flag

k_count = data.count('k')
if data.count('k') == 0:
    print('NO')
else:
    ans = False
    for i in range(k_count):
        if check(data[i:len(data)]):
            ans = True
            break

    if ans:
        print('YES')
    else:
        print('NO')