5th problem solved by brute force