Task: Program Execution
Input (English): 1, 5, ['d', '1165', 'U', 'Q', '8223', 'X', 'U']
Output (English): 8223QU1165d