#include<iostream>
#include<cstdio>
using namespace std;

int main(void){
	while(1){
		int k,res=0;
		cin >> k;
		if(k==0)break;
		for(int i=0;i<(k*(k-1))/2;i++){
			int a;
			cin >> a;
			res+=a;
		}
		cout << res/(k-1) << endl;
	}
    return 0;
}