partnership other than a person or partnership described in paragraph (b) throughout the period beginning 24 months before the determination time and ending at the time of substitution, and(ii) was a share of the capital stock of a corporation described in paragraph (c) throughout that part of the period referred to in subparagraph (i) during which such share was owned by a person or partnership