Task: Program Execution
Input (English): 7539, 4731, M
Output (English): 1, 2