Task: Program Execution
Input (English): 10, 10, ['u', 'b', 'B', '6579', 'X', 'E', 'e', '7989', '7839', '367']
Output (English): 367