Task: Program Execution
Input (English): 2, 3, ['9793', 'a', '147', '2145', 'Q']
Output (English): 147