Determining 9's or 10's complement