Task: Program Execution
Input (English): M, C, 2977, 6557, 1287, G, 6511, c, m, 2823, j, y, 1619, C, G, K, 2431, 5911, s, 5943, Z, 3881, t
Output (English): 1, 2, 6, 8, 9, 11, 12, 14, 15, 16, 19, 21, 23