Problem 2 from 2011 fully solved