Task: Program Execution
Input (English): 2, 2, ['1489', '357', 'g', 'B', '1055']
Output (English): 357