num=int(input()) a=list(map(int,input().split())) b=[] n=sum(a) for i in range(0,num-1): x=(n-a[i])/(num-1) b.append(x) b=' '.join(b) print(b)