Task: Program Execution
Input (English): 1249, 1105, r, 2303, G, 5783
Output (English): 1, 2, 4, 6