This problem is used in private contest:建兰练习赛