var i,a,k: integer;
begin
for a := 100 to 999 do
k:=0;
for i:=3 to a div 3 do
if a mod i = 0 then
k := k + 1;
if k = 0 then write(a, ' ');
end;
end.
var i,a,k: integer;
begin
for a := 100 to 999 do
begin
k:=0;
for i:=3 to a div 3 do
if a mod i = 0 then
k := k + 1;
if k = 0 then write(a, ' ');
end;
end.