Task: Program Execution
Input (English): 5271, O, 6387, b, A, 8367, 9317, 5343, S, 1145, L, 9173, 4785, 7355, H, Z, 8407, 7011, m, M, N, W
Output (English): 1, 3, 6, 7, 8, 10, 12, 13, 14, 17, 18