Var
a: array[1..100, 1..100] of real;
i, j, n, m: integer;
begin
write('n = '); readln(n);
write('m = '); readln(m);
for i := 1 to n do
for j := 1 to m do
begin
read(a[i][j]);
if (i mod 2 = 0) and (j mod 2 = 0) then
a[i][j] := 0;
end;
writeln;
writeln('Modified array: ');
for i := 1 to n do
begin
for j := 1 to m do
write(a[i][j]:7:3);
writeln;
end;
end.