\documentclass{article}


\usepackage{amsmath}

\begin{document}

\[ 
  \sideset{_a^b}{_c^d}\prod\quad
  \sideset{}{^*}\sum_{i=1}^n 
\]

\end{document}
