As always, try solving this problem for yourself, before reading the solution. Even though this is an IMO problem, you still might be able to solve it, don’t give up too easily, and remember that it is always recommended to work on such problems for at least a few hours. Even if you don’...