For example, 61 and 19 is one such pair because when the sheet of paper is read upside down, a different number may be read. However, 01 is invalid (no leading zeroes).
How many useful codes are there that the agency can use?
Note: The only digits that make sense when inverted are 0,1,6,8 and 9.