Task: Program Execution
Input (English): 3, 3, ['f', '7903', '9369', 'Q']
Output (English): 9369