//==============================================//

    public static void Main(string[] args)
    {
        strm = new StreamReader(new FileStream("SetMatrixAndExpression.txt", FileMode.Open, FileAccess.Read));
        try
        {
            Read_matrices();
            Array.Resize(ref mtx_mas, mtx_mas.Length - 1);
        }
        catch (ReadMatrixException)
        {
            Console.WriteLine("Ошибка ввода матриц!");
            return;
        }

        string input = strm.ReadLine();

        try
        {
            Console.WriteLine(Dispenser.Solver(mtx_mas, input));
        }
        catch (MatrixOperationExeption)
        {
            Console.WriteLine("Невыполнимая операция!");
        }
    }