A1, A2 and A3 enter into a partnership business. They invest Rs. 40,000, Rs. 80,000 and Rs. 1,20,000 respectively. At the end of the first year, A2 withdraws Rs. 40,000, while at the end of the second year, A3 withdraws Rs. 80,000. In what ratio will the profit be shared at the end of 3 years?