This problem is used in private contest:PTA