POJ 1351, DP