Mary and mike enter into a partnership by investing Rs. 700 and Rs. 300 respectively. At the end of one year, they divided their profits such that a third of the profit is divided equally for the efforts they have put into the business and the remaining amount of profit is divided in the ratio of the investments they made in the business. If Mary received Rs. 800 more than Mike did, what was the profit made by their business in that year?