Task: Program Execution
Input (English): M, V, Q, E, q, 8775, K, 1205, M, W, 8369, 2929
Output (English): 21278