Task: Program Execution
Input (English): J, 6215, P, 5195, 9651, 105, 1759, m, W, S, 3211, M, E, 1133, 5913, J, 4731, m, 873
Output (English): 2, 4, 5, 6, 7, 11, 14, 15, 17, 19