import std.stdio, std.string, std.conv; import std.algorithm, std.array; void main(){ readln; int[] arr = readln.strip.split.map!(to!int).array; int wans = readln.strip.to!int; int sum = arr.sum; writeln(sum - wans); }