#include <stdio.h>
int main(void) {
    int kind,i,sum,t1,t2;
    while (1) {
        scanf("%d",&kind);
        if (kind==0) break;
        sum=0;
        t1=kind*(kind-1)/2;
        for (i=0; i<t1; i++) {
            scanf("%d",&t2);
            sum+=t2;
        }
        printf("%d\n",sum/(kind-1));
    }
    return 0;
}