Task: Program Execution
Input (English): 3, 5, ['q', 'G', '9871', '3427', 'Q', '1993', 'H']
Output (English): Q34279871