2 br
,gr
,cl
:array [0..3] of longint;
6 function trans(a
:longint):char;
17 readln(br
[i
],gr
[i
],cl
[i
]);
23 if (b
<>c
) and (a
<>c
) then
25 t
:=br
[b
]+br
[c
]+cl
[a
]+cl
[c
]+gr
[a
]+gr
[b
];
29 minway
:=trans(a
)+trans(b
)+trans(c
);
32 writeln(minway
,' ',ans
);