Task: Program Execution
Input (English): M, N, 285, A, Y, u, 2893, Z, 4329, 1359
Output (English): 8866