The distance between towns A and B is 999 km.
At every kilometer of the road that connects A and B a sign shows the distances to A and B as follows:
0-999 , 1-998 ,2-997 , ... , 998-1 , 999-0
How many signs are there, with both distances written with the help of only two distinct digits? Digitsnumber theorydistance