Task: Program Execution
Input (English): m, I, 2097, 3871, 6409, r, p, v, q, 5831, V, a, 8991, 8053, o, B, I
Output (English): m, I, r, p, v, q, V, a, o, B, I