Modeling multi modal distribution

I have a probability distribution of multiple normal and cauchy functions. I would like to use Stan in order to fit my noisy data to the said model. However, I wonder how can I write the model block for a case when I have, for example three Normal and two cauchy?

See here.