Added problem 1471 - COJ. 4th July 2014