#define rd read() signed main(){ int x=rd,y=rd,cnt=0; for(int i=1;i<=y;i++){ int j=x*y/i; int lcm_=lcm(i,j); if(lcm_==y)cnt++; } std::cout<<cnt; }
rt