#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main()
{
	while ( true )
	{
		int K;
		cin >> K;
		if ( K == 0 )
			break;
		long long s = 0;
		for ( int i=0; i<K*(K-1)/2; i++ )
		{
			int t; cin >> t;
			s += t;
		}

		cout << s / (K-1) << endl;
	}
}