Task: Program Execution
Input (English): d, p, 2661, 971, 647, 9877, 795, T, 2871, b, f, 9381, 2931, c
Output (English): 1, 2, 8, 10, 11, 14