Task: Program Execution
Input (English): N, had, d, t, side., B, sort, a, of, L, M
Output (English): Nhaddtside.BsortaofLM