Section 318 Ipc / Section 294 of the indian penal code lays down the punishment for obscene acts or words in public.