4. Unlucky Emelya was given several metal balls, from which he broke 3 of the largest ones (their mass was $35 \%$ of the total mass of all the balls), then lost 3 of the smallest ones, and brought the remaining balls (their mass was $8 / 13$ of the unbroken ones) home. How many balls were given to Emelya