A cat started playing with yarn balls. In her first game, she managed to accumulate 5 yarn balls. In her second game, she got as many balls as the square of what she obtained in the first game plus 8 more. Finally, she lost some of her balls in her third game due to a playful dog. She ended the game with a number of balls which is 25 times the difference between 45 and what she accumulated from the second game. How many yarn balls does the cat have now?