Task: Program Execution
Input (English): 3585, 9209, 9663, 6555, 8707, C, 6391, N, 4483, 8161, 6973, 7051, r, P, p, 2933, 5363, 5317, 6537, a, 3599
Output (English): 1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 16, 17, 18, 19, 21