Sum Rule for Continuous Mappings into Topological Ring