Var d:array[1..10] of integer;
s,i:integer;Begins:=1;For i:=1 to 10 do begin
readln(d[i]);
If d[i]<>0 Then S:=S*d[i];
end;Writeln(S);end.
Var d:array[1..10] of integer;
s,i:integer;
Begin
s:=1;
For i:=1 to 10 do
begin
readln(d[i]);
If d[i]<>0
Then S:=S*d[i];
end;
Writeln(S);
end.