Task: Program Execution
Input (English): 1, 4, ['7785', 'R', '7879', '2623']
Output (English): 18287