Task: Program Execution
Input (English): 4, 5, ['349', '9803', 'c', 'X', 'Q', '3161']
Output (English): QX