begin
var a := 1234567;
var s := 0;
while a > 0 do
s += Ord(a mod 10 mod 2 = 0);
a := a div 10;
end;
s.Println;
end.
begin
var a := 1234567;
var s := 0;
while a > 0 do
begin
s += Ord(a mod 10 mod 2 = 0);
a := a div 10;
end;
s.Println;
end.