This problem is used in private contest:温故知新