from typing import List
import itertools


def mark_and_toys(prices: List, budget: int):
    """
    Compute max toys mark can buy.

    :param prices: tpy prices.
    :param budget: max budget.
    :return: No of toys that can be bought.
    """
    prices.sort()
    accumulated_prices = list(itertools.accumulate(prices))
    return next(
        agg_price[0]
        for agg_price in enumerate(
            accumulated_prices) if agg_price[1] > budget)