#include<iostream>
using namespace std;


int main() {
    int K;
   while(cin >> K){
    if (K == 0){
        break;
    }
    else{
         int m=0 ;
    for(int i=0;i<K*(K-1)/2;++i){
        int c;
        cin >> c;
        m += c;
    }  
    int r;
    r = m/(K-1);
    cout << r << endl;
    } 
  
   }
   
    return 0;
}
