Task: Program Execution
Input (English): 9049, 8165, v, 8573, R
Output (English): 3, 5