How many three digit numbers are left if we exclude all three digit numbers in which there are exactly two digits the same, but these two digits are not adjacent?

Let's think step by step and output the final answer within \boxed{}.
user