#include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define int long long
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

signed main(){
	int k;
	while(1){
		cin>>k;
		if(k==0) break;
		int sum=0;
		rep(i,0,k*(k-1)/2){
			int c;
			cin>>c;
			sum+=c;
		}
		o(sum/(k-1));
	}

}