a=int(input()) t=0; for var in map(int,input().split()): t+=var v=int(input()) print(t-v)