Won't sign automatically call `n()`? Can't you just replace the above three lines with 

```py
if sign(a) != sign(a1):
```