(b) Any person violating the provisions of sections thirty-one or thirty-two of this article is guilty of a misdemeanor and, upon conviction thereof, shall be fined not more than one hundred dollars, or confined in the county or regional jail for not more than ten days, or both; upon a second conviction within one year thereafter, shall be fined not more than two hundred dollars, or confined in the county or regional jail for not more than twenty days, or both; and upon a third or subsequent conviction, shall be fined not more than five hundred dollars, or confined in the county or regional jail not more than six months, or both.