Task: Program Execution
Input (English): 3617, 5743, m
Output (English): 1, 2