Task: Program Execution
Input (English): A, f, 6451, z, A, 1353, M, 469, 5605, U, j, g, J, 9671
Output (English): 23549