Task: Program Execution
Input (English): 5537, 8081, Z, 253, 1519, 8153, S, I, M, m, 2591, m, 2089, T, 5551, 7251, 4589, 4571, 7671, 9351, 543, 7903, 939
Output (English): 1, 2, 4, 5, 6, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23