prob 25 first version
Problem 25