A, B and C enter into a partnership. A initially invests Rs. 25 lakhs and adds another Rs. 10 lakhs after one year. B initially invests Rs. 35 lakhs and withdraws Rs. 10 lakhs after 2 years and C invests Rs. 30 lakhs. In what ratio should the profits be divided at the end of 3 years ?