Check whether entries of `A` and `product` are integers