Determine the total count of positive integers n between 1 and 102007 inclusively such that the last 2007 digits of n and n3 are the same. (If n or n3 has fewer than 2007 digits, treat it as if it had zeros on
the left to compare the last 2007 digits.)