3. Variant 1. Petya and Masha take candies from a box in turns. Masha took one candy, then Petya took 2 candies, Masha - 3 candies, Petya - 4 candies, and so on. When the number of candies in the box became less than needed for the next turn, all the remaining candies went to the one whose turn it was to take candies. How many candies did Petya get if Masha got 101 candies