compare first and last digit of the target