#include<stdio.h>

int main(){
  int i,sum,k,loop,kari;

  while(1){
    sum = 0;
    scanf("%d",&k);

    if(k == 0) break;

    loop = k * (k - 1)/2;

    for(i = 0; i < loop; i++){
      scanf("%d",&kari);
      sum += kari;
    }

    sum /= (k-1);

    printf("%d\n",sum);
  }
  return 0;
}