When a shareholder contributes appreciated property to an S corporation in a transfer that qualifies under Section 351 and the shareholder receives stock and cash in return, the shareholder will recognize: