Task: Program Execution
Input (English): XJnMxn, oNnMpW
Output (English): nM