Amenability of the algebras R(S), F(S) of a topological semigroup S