program HaiCalatorie;
var f:text;
n,k,i, calatorii, ramase, suma:integer;
begin
assign(f,'tichet.txt'); reset(f);
readln(f,n,k);
suma:=0;
for i:=1 to k do
begin
readln(f, calatorii);
suma:=suma+calatorii;
end;
close(f);
ramase:=n-suma;
writeln('calatorii ramase pe card: ', ramase);
end.