Program Sherilusha;
uses crt;
const n = 20;
var
a:array [1..n] of integer;
sdvig,i,k:integer;
begin
randomize;
for i:=1 to n do
begin
a[i]:=random(100)-50;
write(a[i]:3,' ');
end;
writeln();
sdvig:=0;
for i:=1 to n do
if a[i]=0 then
sdvig:=sdvig+1
else
begin
a[i-sdvig]:=a[i];
end;
k:=n-sdvig;
for i:=1 to k do
write(a[i]:3,' ');
end.