#include<iostream>
using namespace std;


int main(){
  int n = 0;
  while(true){
    int sum =0;
    int push_n = 0;
    cin >> n;
    if(n == 0){
      break;
    }
    for(int i=0;i<(int)(n*(n-1)/2);i++){
      int a = 0;
      cin >> a;
      sum += a;
    }

    int x = sum / (n-1);
    cout << x << endl;

  }



  return 0;
}