Task: Program Execution
Input (English): M, 5121, z, e, k, 9567, 3741, j, 299, 2917, 6213
Output (English): 27858