two famous compete company ChemForces TopChemist decide set recently discover chemical element exhibition however know element present set companiesIn order avoid representative company decide agreement set company present the set choose way maximize total income companiesall element enumerate integer the ChemForces company discover n distinct chemical element index a_1 a_2 ldots a_n income x_i Berland ruble ith element list set companyThe TopChemist company discover m distinct chemical element indice b_1 b_2 ldots b_m income y_j Berland ruble include jth element list setin word company present subset element a_1 a_2 ldot a_n possibly subset second company present subset element b_1 b_2 ldot b_m possibly subset there should not equal element subsetshelp representative select set way element present set total income maximum possible