s = list(input())

key = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
idx = 0
status, cont = True, False
for i in range(len(s)):
    if s[i] == key[idx]:
        if status:
            pass
        else:
            cont = False
        idx += 1
    else:
        if status:
            status, cont = False, True
        else:
            if cont:
                pass
            else:
                print('NO')
                exit()

    if idx == 7:
        print('YES')
        exit()

print('NO')