program z;
var a,n,i:integer;
begin
read(a,n);
for i:=a to a+n-1 do
if i mod 7 = 0 then writeln(i) else write(i,' ')
end.
program z;
var a,n,i:integer;
begin
read(a,n);
for i:=a to a+n-1 do
if i mod 7 = 0 then writeln(i) else write(i,' ')
end.