Task: Program Execution
Input (English): 2939, 9573, M
Output (English): 3