#include <stdio.h>

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

	return 0;
}