import scala.io.StdIn.{readInt,readLine}
import scala.collection.mutable.ArrayBuffer

object Main extends App {
  var n = 0
  val b = new ArrayBuffer[Int]
  while({n=readInt;n} != 0){
    val s = readLine.split(" ").map(_.toInt).sum
    b += s/(n-1)
  }
  println(b.mkString("\n"))
}