var
i, imax, sum: integer;
mas: array[1..12] of integer;
begin
for i:=1 to 12 do
read(mas[i]);
writeln;
if (mas[i]=100) then
imax:= i;
break;
end;
for i:=1 to imax-1 do
inc(sum, mas[i]);
write('Сумма = ', sum);
end.
var
i, imax, sum: integer;
mas: array[1..12] of integer;
begin
for i:=1 to 12 do
read(mas[i]);
writeln;
for i:=1 to 12 do
if (mas[i]=100) then
begin
imax:= i;
break;
end;
for i:=1 to imax-1 do
inc(sum, mas[i]);
write('Сумма = ', sum);
end.