def is_keyence(s):
    KEYENCE = "keyence"
    if s[:7] == KEYENCE or s[-7:] == KEYENCE:
        return True
    for index, string in enumerate(KEYENCE):
        if s[:index] == KEYENCE[:index] and s[-index:] == KEYENCE[-index:]:
            return True
    return False

inp = input()
if is_keyence(inp):
    print("YES")
else:
    print("NO")