verified by POJ1258