uses wincrt;
var
a,b:longint;
procedure saisie(var a,b:longint);
begin repeat write('a= ');
readln(a);
write('b= ');
readln(b);
until (a>=100) and(b>a);
end;
function polydiv(n:longint):boolean;
var i,x:longint;
e:integer;
test:boolean;
ch:string;
begin str(n,ch);
i:=1;
repeat i:=i+1;
val(copy(ch,1,i),x,e);
if x mod i=0 then test:=true else test:=false;
until (test=false) or (i=length(ch));
polydiv:=test;
end;
procedure affiche(a,b:longint) ; var
i:longint;
begin
for i:=a to b do if polydiv(i)=true then write(i,' ');
end;
begin saisie(a,b);
affiche(a,b);
end.