Task: Program Execution
Input (English): 2, 5, ['2485', '3273', '7151', 'l', '9955', '2879', 'r']
Output (English): 20379