#include<stdio.h>
int main(void)
{
	int K,c,x;
	int sum=0;

	while(1){
		scanf("%d",&K);
		if( K==0 )
			break;
		else{
			c=K*(K-1)/2;

			while(c--){
				scanf("%d",&x);
				sum+=x;
			}
			printf("%d\n",sum/(K-1));
			sum=0;
		}
	}
	return 0;
}