var
i: integer;
a: array[1..10] of integer;
begin
for i := 1 to 10 do
read(a[i]);
if a[i] = 0 then a[i] := 1;
write(a[i], ' ');
end;
end.
var
i: integer;
a: array[1..10] of integer;
begin
for i := 1 to 10 do
read(a[i]);
for i := 1 to 10 do
begin
if a[i] = 0 then a[i] := 1;
write(a[i], ' ');
end;
end.