A person is guilty of possessing child pornography if the person knowingly possesses:
A violation of this section is a Class 4 felony. A conviction under this section for a first offense must be punished by a mandatory sentence in a state correctional facility of at least one year. A conviction under this section for a second or subsequent offense must be punished by a mandatory sentence in a state correctional facility of at least five years.
SDCL 22-24A-35