program vupadkovi;
var x,k,i,a,b: integer;
begin
randomize;
a:=random(11)+5;
b:=random(31)+20;
k:=random(41)+10;
writeln ('a=',a,' b=',b,' k=',k);
for i:=1 to k do
begin
x:=random(b-a+1)+a;
if x mod 10=9 then
writeln (x,' ')
end;
readln
end.