The annual Chengdu Children Poker Contest (CCPC) has begun! Unfortunately, the cards have been all blown away during the contest and the contest cannot go ahead. You, as the contest organizer, need to prepare a rematch and reproduce a pack of cards for the rematch.
The cards used in the contest are quite special — each card represents a set of integers. For a pack of $m$ cards, we denote the set represented by each card as $S_1,S_2,\dots,S_m$. The pack of the cards should meet the following conditions:
- The elements in each set are unordered and distinct.
- For every $i$, $S_i \subset \mathbb{Z}^+$ (the set of all positive integers), and $S_i \neq \emptyset$.
- For every $1 \le i \lt j \le m$, $S_i \neq S_j$.
- For every $i$, $\prod_{x \in S_i}x \le C$, where $C$ is a given constant.
What's more, a mystery guy tells you the reason why the cards are blown away is that you use some ominous integers. There are $n$ ominous integers, and you should avoid using them in case your cards get blown away again. We denote the set of ominous integers as $T$. That is:
- For every $i$, $S_i \cap T=\emptyset$.
You want to reproduce as many cards as possible. Now given $C$ and the $n$ ominous integers, please calculate the maximum number of cards in the pack.