The four circles in the figure determine 10 bounded regions. $10$ numbers summing to $100$ are written in these regions, one in each region. The sum of the numbers contained in each circle is equal to $S$ (the same quantity for each of the four circles). Determine the greatest and smallest possible values of $S$.
Attachments:
