How to solve the problem (Polia)