Task: Program Execution
Input (English): z, 5197, O, L, M, R, l, A, p, S, F, C
Output (English): 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12