#include <stdio.h>

int main() {

  int i,k,n;
  int sum = 0;

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

    for(i=0;i<k*(k-1)/2;i++) {

      scanf("%d",&n);
      sum = sum + n;

    }

    printf("%d\n",sum/(k-1));

  }
  return 0;

}