The average monthly salary of 21 workers and 4 managers in a factory was Rs. 800. When one of the managers whose salary was Rs. 1700, was replaced with a new manager, the average salary of the team went down to Rs. 770. What is the salary of the new manager?