Task: Program Execution
Input (English): P, 7623, M, 1095, S, B, 3923, 2189, 1469, 1985, A, A, 2585, L, h, c, e, 4951
Output (English): 1, 3, 5, 6, 11, 12, 14, 15, 16, 17