Compare 3-digit numbers