The law prescribes five years in prison for a man who engages "in acts of gross indecency, either in public or private." This includes mutual masturbation by two men or the simple act of solitary masturbation.