Auto-translated
It took me two tries, but I managed to do it this way: see the screenshot.
Maybe it's possible to do it perfectly, without any losses, but this was a quick solution.
I also managed to win with 34 bears and 10 devils, but I can't do it anymore...