This problem is used in private contest:15-17