
fun main(args:Array<String>):Unit {
    while (true) {
        val k = readLine()!!.trim().toInt()
        if (k == 0) return
        val c = readLine()!!.trim().split(' ').map(String::toInt)
        println(c.sum() / (k - 1))
    }
}
