Notwithstanding paragraph (a) of this subsection, unlawful possession of cocaine is a Class A misdemeanor if the person possesses two grams or more of a mixture or substance containing a detectable amount of cocaine.
(c)
Notwithstanding paragraphs (a) and (b) of this subsection, unlawful possession of cocaine is a Class C felony if: