import math n = int(input()) l = list(map(int, input().split())) v = int(input()) for i in l: v = v - int(i) print (0 - v)