In a fraction, both the numerator and denominator are perfect squares. The sum of numerator and denominator is also a perfect square. If numerator is subtracted from denominator, we get 527. The last digit of numerator is 9. What is the value of product of numerator and denominator?