<prompt> H, He, Li, Be, B, C, N, O, F, Ne, Na, Mg, Al, Si, P, S, Cl, ArUnapewa seti ya elementi za kemikali. Andika programu ambayo husawazisha jumla ya MAsses zote.  <response>: Here is a program written in Python that calculates the sum of masses for the given chemical elements:pythonfrom mendeleev import elementdef sum_of_masseselements: total_mass 0 for e in elements: total_mass elemente.atomic_weight return total_masselements H, He, Li, Be, B, C, N, O, F, Ne, Na, Mg, Al, Si, P, S, Cl, Arresult sum_of_masseselementsprintThe total mass of the given elements is:, result In this program, we use the mendeleev module, which contains the information of the elements in the periodic table. We define a function, sum_of_masses, which takes a list of elements as an argument. Inside the function, we iterate through each element and add its atomic weight to a variable, total_mass, using the atomic_weight attribute of the element object from the mendeleev module. Finally, the function returns the total_mass variable. We then call this function with the input list of elements and print the result, which gives us the sum of masses for the given elements. 