Four-head automatic filling machine