#include using namespace std; using ll=long long; int main(){ int a,b; cin>>a>>b; for(int x=1;x<=100000;x++){ if(x%a==b%x){ cout<