  A cosmological model describing the evolution of $n$ Einstein spaces $(n>1)$
with $m$-component perfect-fluid matter is considered. When all spaces are
Ricci-flat and for any $\alpha$-th component the pressures in all spaces are
proportional to the density: $p_{i}^{(\alpha)} = (1- h_{i}^{(\alpha)})
\rho^{(\alpha)}$, $h_{i}^{(\alpha)}$ = const, the Einstein and Wheeler-DeWitt
equations are integrated in the cases: i) $m=1$, for all $h_{i}^{(\alpha)}$;
ii) $m > 1$, for some special sets of $h_{i}^{(\alpha)}$. For $m=1$ the quantum
wormhole solutions are also obtained. \\
