a,b=io.read(14,2)for i=0,9 do print(b and a..(b+i)or a+i)end