Task: Program Execution
Input (English): 3, 11, ['5121', '351', 'B', '3873', '8059', 'D', '7273', '3065', '2531', 'x', '6051', '4063']
Output (English): 30852