program taxi;
var f: text;
n, suma, k, i, valcursa: integer;
begin
assign(f,'taxi.txt'); reset(f);
readln(f, n, k);
suma:=0;
for i:=1 to n do
begin
readln(f, valcursa);
suma:=suma+valcursa;
end;
suma:=suma-k*n;
writeln('Suma incasata: ', suma, ' lei');
close(f);
end.