One more solution, after the contest