Task: Program Execution
Input (English): 8869, 1725, 9427, 5427, 6431, 8333, 249, m, 8671, 9143, e, 1677, 705, K, 3163, 8881, 9771, M, m, R, l, 3213
Output (English): 1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 13, 15, 16, 17, 22