Conservation laws and mass distribution in the planet formation process