Every person convicted of a traffic infraction for a violation of any provision of this chapter which is not a violation of any provision of the Vehicle and Traffic Law of the State of New York shall, for a first conviction thereof, be punished by a fine of not more than $100 or by imprisonment for not more than 15 days, or by both such fine and imprisonment; for a second such conviction within 18 months thereafter, such person shall be punished by a fine of not more than $200 or by imprisonment for not more than 45 days, or by both such fine and imprisonment; upon a third or subsequent conviction within 18 months after the first conviction, such person shall. be punished by a fine of not more than $300 or by imprisonment for not more than 90 days, or by both such fine and imprisonment. Any surcharge imposed on any conviction as mandated by the State of New York shall be in addition to any fine imposed under this section.