Task: Program Execution
Input (English): 2793, 2951, R, i, 5057, S
Output (English): 1, 2, 5