On Problem A of WF
Funny that I was trying to solve the Timus 1955 last week. And then it wildly appears at the World Finals.