Kelly Corporation makes a liquidating distribution. Among other property, it distributes land subject to a mortgage. The mortgage amount exceeds both the adjusted basis and FMV for the land. Explain to Kelly Corporation's president how the amount of its recognized gain or loss on the distribution and the shareholder's basis for the land are determined.