Ensuring that last digits do not form a pair.