def calc_sum_mem_dict(mem_dict):
    """ Calculates sum of values stored in memory.

    :param mem_dict: dictionary with memory address as key and stored value as value
    :return: int
    """
    return sum(mem_dict.values())