Task: Program Execution
Input (English): 2, 3, ['2469', 'r', 'I']
Output (English): Ir