Check the digits limits in expressions.

Not neat at all, but I could not care less.