ll@A,@B;rep(x,1,1d6)if(x%A==x%B)wt(x),break;