program exec;
var a:array [1..7] of integer;
var i,sum:integer;
begin
sum:=0;
for i:=1 to 7 do begin
readln (a[i]);
if (a[i] mod 2=0) then sum:=sum+a[i];
end;
writeln (sum);
end.
program exec;
var a:array [1..7] of integer;
var i,sum:integer;
begin
sum:=0;
for i:=1 to 7 do begin
readln (a[i]);
if (a[i] mod 2=0) then sum:=sum+a[i];
end;
writeln (sum);
end.