Towards Complex Document Understanding By Discrete Reasoning