n,k=gets.split(" ").map{|e| e.to_i} n-=k i=1 ans=[] while i*i<=n do if n%i==0 then ans<