In a second multiple regression, I have three independent variables which are just the averages of the scores instead of the total sum

Why is it that if I perform OLS on a dependent variable, the beta coefficients remain the same, regardless if I took the averages or just used the totals?