1790. 
Bernardo chooses a threedigit positive integer and writes both its base5 and base6 representations on a blackboard. Later LeRoy sees the two numbers Bernardo has written. Treating the two numbers as base10 integers, he adds them to obtain an integer . For example, if , Bernardo writes the numbers 10,444 and 3,245, and LeRoy obtains the sum . For how many choices of are the two rightmost digits of , in order, the same as those of ?
This problem is copyrighted by the American Mathematics Competitions.

Instructions for entering answers:
For questions or comments, please email markan@eudelic.com.