while 1:

    k=int(eval(input()))

    if k==0:break

    print((sum(map(int,input().split()))//(k-1)))
while 1:

    k=int(eval(input()))-1

    if k<0:break

    print((sum(map(int,input().split()))//k))
while 1:
    k = int(eval(input()))
    if k == 0:
        break
    print((sum(map(int, input().split())) // (k - 1)))

while 1:
    k = int(eval(input())) - 1
    if k < 0:
        break
    print((sum(map(int, input().split())) // k))

-    k = int(eval(input())) -    if k == 0: +    k = int(eval(input())) - 1 +    if k < 0: -    print((sum(map(int, input().split())) // (k - 1))) +    print((sum(map(int, input().split())) // k))