Let m and n be coprime integers both larger than 1. The fractions m/n and n/m can be converted into the terminating decimals x and y. We can create two integers, X and Y, by removing the decimal points in x and y, respectively. How many pairs of m and n can make X+Y=9,766,649?