Task: Program Execution
Input (English): 2, 3, ['A', '7967', 'D', '2241', 'x', '1045', '9199', '8157', '343']
Output (English): 7967D