Task: Program Execution
Input (English): 3, 10, ['5107', 'B', 'Z', 'y', '7621', 'u', '5959', 'J', '147', '1811', 'D', '4333', 'J', '3997']
Output (English): 1181741J9595u1267yZ