#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>

using namespace std;

int n,a[100100];

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