Think you’ve heard of every way possible to quit smoking? Etta Mae Lopez came up with a new one: Slap a cop and go to jail, where smoking isn’t allowed.

Lopez smacked Sacramento County Deputy Matt Campoy in the face on Tuesday as he left the main jail at the end of his shift. He grabbed her and took her inside the jail, where she slapped his arm as soon as he turned her loose.

Once she was handcuffed, Lopez told Campoy she picked him because he was in uniform and she wanted to make sure she struck a law-enforcement officer.

“She waited all day for a deputy to come out because she knew if she assaulted a deputy she would go to jail and be inside long enough to quit her smoking habit,” Campoy said.

Lopez, 31, pleaded no contest to misdemeanor battery on a peace officer and was sentenced Thursday to 63 days in jail.