Task: Program Execution
Input (English): mvMDhm, SwMDCm
Output (English): mvdmhm, SwdmCm