var a:array[1..1000] of integer;
n,i,sum1,sum2:integer;
begin
n:=12;
for i:=1 to n do begin
write('Vvedite a[',i,']=');
read(a[i]);
end;
sum1:=0;
sum2:=0;
for i:=1 to 6 do begin sum1:=sum1+a[i]; end;
for i:=6 to n-1 do begin sum2:=sum2+a[i]; end;
if sum1=sum2 then write('=') else
if sum1>sum2 then begin
for i:=1 to 6 do writeln(a[i]) end
else for i:=6 to n-1 do writeln(a[i]);
end.