func main() var n: int :: cui@inputInt() var sum: int :: 0 for i(0, n - 1) do sum :+ cui@inputInt() end for var v: int :: cui@inputInt() var ans: int :: sum - v do cui@print("\{ans}\n") end func