Task: Program Execution
Input (English): 2, 5, ['J', 'd', 't', '5849', '2941']
Output (English): dt58492941