Task: Program Execution
Input (English): 3173, g, M, M
Output (English): 3173, 7, 13, 13