Task: Program Execution
Input (English): i, 8535, r, 2837, r
Output (English): i, r