For purposes of determining under paragraph (3) whether any person holds more than 5 percent of any class of stock and of determining under paragraph (5) whether a person holds a controlling interest in any corporation, section
318
(a) shall apply (except that paragraphs (2)(C) and (3)(C) of section
318
(a) shall be applied by substituting “5 percent” for “50 percent”).