# coding: utf-8

def is_keyence(target: str):
    key = "keyence"

    if target == key:
        return True

    for i in range(len(target)):
        for j in range(i, len(target)):
            tmp = ""
            if i > 0:
                tmp += target[0:i - 1]
            if j < len(target) - 1:
                tmp += target[j + 1:]
            if tmp == key:
                return True
    return False


print("YES" if is_keyence(input().rstrip()) else "NO")
