Среди трех чисел найти максимум, минимум и число между ними

Задачу решил Родион Корчагин (6 класс, 2015 год).

<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="variables_set" id="102" x="-413" y="-362">
<field name="VAR">а</field>
<value name="VALUE">
<block type="text_prompt_ext" id="182">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="183">
<field name="TEXT">Введите первое число</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="117">
<field name="VAR">б</field>
<value name="VALUE">
<block type="text_prompt_ext" id="184">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="185">
<field name="TEXT">Введите второе число</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="132">
<field name="VAR">в</field>
<value name="VALUE">
<block type="text_prompt_ext" id="186">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="187">
<field name="TEXT">Введите третье число</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="54">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="55">
<field name="VAR">а</field>
</block>
</value>
<next>
<block type="controls_if" id="12">
<value name="IF0">
<block type="logic_compare" id="13">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="14">
<field name="VAR">б</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="15">
<field name="VAR">а</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="16">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="17">
<field name="VAR">б</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="18">
<value name="IF0">
<block type="logic_compare" id="19">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="20">
<field name="VAR">в</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="21">
<field name="VAR">максимум</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="22">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="23">
<field name="VAR">в</field>
</block>
</value>
</block>
</statement>
<next>
<block type="variables_set" id="24">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="25">
<field name="VAR">а</field>
</block>
</value>
<next>
<block type="controls_if" id="26">
<value name="IF0">
<block type="logic_compare" id="27">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="28">
<field name="VAR">б</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="29">
<field name="VAR">а</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="30">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="31">
<field name="VAR">б</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="32">
<value name="IF0">
<block type="logic_compare" id="33">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="34">
<field name="VAR">в</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="35">
<field name="VAR">минимум</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="36">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="37">
<field name="VAR">в</field>
</block>
</value>
</block>
</statement>
<next>
<block type="variables_set" id="38">
<field name="VAR">среднее</field>
<value name="VALUE">
<block type="math_arithmetic" id="39">
<field name="OP">MINUS</field>
<value name="A">
<block type="math_arithmetic" id="40">
<field name="OP">ADD</field>
<value name="A">
<block type="math_arithmetic" id="41">
<field name="OP">ADD</field>
<value name="A">
<block type="variables_get" id="42">
<field name="VAR">а</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="43">
<field name="VAR">б</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="variables_get" id="44">
<field name="VAR">в</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_arithmetic" id="45">
<field name="OP">ADD</field>
<value name="A">
<block type="variables_get" id="46">
<field name="VAR">минимум</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="47">
<field name="VAR">максимум</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="text_print" id="48">
<value name="TEXT">
<block type="variables_get" id="49">
<field name="VAR">максимум</field>
</block>
</value>
<next>
<block type="text_print" id="50">
<value name="TEXT">
<block type="variables_get" id="51">
<field name="VAR">минимум</field>
</block>
</value>
<next>
<block type="text_print" id="52">
<value name="TEXT">
<block type="variables_get" id="53">
<field name="VAR">среднее</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>