Divide all existing tourists in groups by 3. If all the groups are full, let n be the number of all such groups. If the last group is not full, let the number of all groups, including one incomplete group, be n. Then the fee is the product of 700 pesos by the number of groups, or 700*n.