Integer Approximation

POJ - 1650