program Main;
vari: integer;
beginfor i := 1 to 10000 dobeginif (i mod 10 = 8) and (i mod 3 = 0) thenwriteln(i);end;end.
program Main;
var
i: integer;
begin
for i := 1 to 10000 do
begin
if (i mod 10 = 8) and (i mod 3 = 0) then
writeln(i);
end;
end.