Task: Program Execution
Input (English): 1987, 2613, k, 4989, 5845, 3321, 1463, z, T, S, B, 7887, b, C, 9353, 6485, j, S
Output (English): 1, 2, 4, 5, 6, 7, 12, 15, 16