Task: Program Execution
Input (English): 4, 5, ['Z', '8909', '2605', 'Q', '7233', 'A', 'h', 'g', '5655', '4565', '5651', 'F', 'L', '7075', '9245', 'H', '9023', '909', 'n', '1881', 'p', '849', 'J', '3509']
Output (English): 3327Q