uses crt;
var dem,n,m,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
write('Nhap m='); readln(m);
t:=m+n;
writeln('Trung binh cong cua chung la: ',t/2:4:2);
dem:=0;
if n mod m=0 then inc(dem);
if m mod n=0 then inc(dem);
writeln('Co ',dem,' so la boi so cua so kia');
readln;
end.