We investigate that the two types of the Q balls explain the baryon asymmetry and the dark matter of the universe in the gauge-mediated supersymmetry breaking. The gauge-mediation type Q balls of one flat direction produce baryon asymmetry, while the new type Q balls of another flat direction become the dark matter. We show that the dark matter new type Q balls are free from the neutron star constraint. n=5 gauge mediation type and n=6 new type Q balls are displayed as an example, where the potential is lifted by the superpotential Phi^n. These dark matter Q balls may be detected by future observations, such as in advanced IceCube-like observations.