var i, b, c: integer;
begin
b:=0;
c:=0;
for i:=1 to 1000 do
if (i mod 7=0) and (i mod 11=0) then
b:=b+1;
c:=c+i;
end;
writeln('summ=',c,' kol=',b)
end.
var i, b, c: integer;
begin
b:=0;
c:=0;
for i:=1 to 1000 do
begin
if (i mod 7=0) and (i mod 11=0) then
begin
b:=b+1;
c:=c+i;
end;
end;
writeln('summ=',c,' kol=',b)
end.