progRAM MASSIV;USES CRT;var K,K1, i,j,m,n:integer;x:array[1..50,1..50] of integer;beginread(n,m);for I:=1 to n dofor J:=1 to m dox[i,j]:=random(10);K:=0;for I:=1 to n dofor J:=1 to m doIF X[I,J]>0 THEN INC(K);for I:=1 to n dofor J:=1 to m doIF X[I,J]<0 THEN INC(K1);for I:=1 to n do beginfor J:=1 to m dowrite (x[i,j]:5);writeln;end;WRITELN(K);WRITELN(K1);end.