Let f(x) = \sqrt{x - \sqrt{x}}. Find the largest three-digit value of x such that f(x) is an integer.