Task: Program Execution
Input (English): M, 3561, 917, 6835, J, L, 1091, n, A, 4259, 609
Output (English): 17272