what you lose on the swings you gain on the roundabouts

Proverb

 * 1)  There are both gains and losses in life; you win some, you lose some.

Translations

 * Hungarian: amit nyer a réven, elveszti a vámon
 * Spanish: lo comido por lo servido