Yukicoder No.369 足し間違い date: 2016-05-24 see also: http://yukicoder.me/problems/1039 #!/usr/bin/env python3 n = int(input()) xs = map(int,input().split()) y = int(input()) print(sum(xs) - y)