Task: Program Execution
Input (English): 1, 3, ['4181', '3741', 'Q']
Output (English): Q14731814