Two particles having mass ratio $n:1$ are interconnected by a light inextensible string that passes over a smooth pulley. If the system is released, then the acceleration of centre of mass of the system is