Task: Program Execution
Input (English): 3627, C, 1607, 2469, 2755, J, P
Output (English): 1, 3, 4, 5