Match the given numbers to the smallest number that has to be subtracted from it to get a perfect square.