In the formula in subparagraph b of the first paragraph,(a) A is the aggregate of all amounts each of which is the cost amount to the transferee, immediately before the disposition, of a disposed share;
(b) B is the total ofi. the aggregate of all amounts each of which is the proceeds of disposition of a disposed share, and
ii. the aggregate of all amounts in respect of the computation of losses of the transferee from the dispositions of the disposed shares, each of which is, in respect of the disposition of a disposed share, the amount by which the amount referred to in subparagraph a of the second paragraph of section 591 exceeds the amount determined by the formula in that second paragraph;
(c) C is the fair market value, immediately after the disposition, of all shares of the particular class owned, immediately after the disposition, by the transferee;
(d) D is the fair market value, immediately after the disposition, of all shares owned, immediately after the disposition, by the transferee of the capital stock of all acquired affiliates; and
(e) E is the number of shares of the particular class that are owned by the transferee immediately after the disposition.