Say that a 4-digit positive integer is mixed if it has 4 distinct digits, its leftmost digit is neither the biggest nor the smallest of the 4 digits, and its rightmost digit is not the smallest of the 4 digits. For example, 2013 is mixed. How many 4-digit positive integers are mixed?