#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<string>
#include<vector>
#include<map>
#include<stack>
#include<queue>

using namespace std;

int main(){
	int K;
	while(scanf("%d",&K)){
		if(K==0)
		break;
		int tp,sum=0;
		for(int i=0;i<(K*(K-1))/2;i++){
			scanf("%d",&tp);
			sum+=tp;
		}
		sum/=K-1;
		printf("%d\n",sum);
	}
}
