//PascalABC.NET 3.4.2
begin
var num := readinteger();
if (num in [1000..9999]) then
for var i := 1 to 4 do
if (num.ToString[i].ToDigit mod 2 <> 0) then
write('нет');
exit;
end;
write('да');
end
else
write(' наверное число');
end.
//PascalABC.NET 3.4.2
begin
var num := readinteger();
if (num in [1000..9999]) then
begin
for var i := 1 to 4 do
if (num.ToString[i].ToDigit mod 2 <> 0) then
begin
write('нет');
exit;
end;
write('да');
end
else
write(' наверное число');
end.