var
i, num, count: integer;
begin
count := 0;
for i := 1 to 15 do
read(num);
if (num mod 2 = 0) and (num mod 9 = 0) then
count := count + 1;
end;
write(count);
end.
var
i, num, count: integer;
begin
count := 0;
for i := 1 to 15 do
begin
read(num);
if (num mod 2 = 0) and (num mod 9 = 0) then
count := count + 1;
end;
write(count);
end.