Task: Program Execution
Input (English): have, b, and, u, a, Where, j, f, g, weight,, S, k, mass, S, M
Output (English): havebanduaWherejfgweight,SkmassSM