Task 122 completed. Brute-force method was used.