Var a: array [1..20] of integer; i, n: integer; k: longint; begin readln(n); k := 1; for i := 1 to n do begin a[i] := random(10); write(' ', a[i]); end; writeln(); for i := 1 to n do k := k * a[i]; writeln(k); end.