Task: Program Execution
Input (English): Z, 6847, 3987, 369, C, 5209, 6983, E, C, 4179, 6239, g, S, M
Output (English): 1, 5, 8, 9, 12, 13, 14