In the case of such a transfer, any money or other property paid to the shareholder for such stock shall be considered to be paid to the corporation and transferred immediately thereafter by the corporation to the shareholder as a distribution to which section 302 applies.