than 500 soldiers gather for a performance. If each row has three soldiers,
then one soldier is left out. If each row has five soldiers, then four soldiers
are left out. If each row has seven soldiers, then three soldiers are left out.
What is the maximum and minimum possible amount of soldiers that have gathered?