ON THE INVARIANT MEAN ON TOPOLOGICAL SEMIGROUPS AND ON TOPOLOGICAL GROUPS