Task: Program Execution
Input (English): a, 1937, C, 9437, p, C, 7935, T
Output (English): 1, 3, 5, 6, 8