Task: Program Execution
Input (English): 8975, G, 1311, A, D, W, Y, r, 8785, f, 3589, i, 3553, m, F, 3737, 6955, M, i, I, 49
Output (English): G, A, D, W, Y, r, f, i, m, F, M, i, I