Task: Program Execution
Input (English): 2, 3, ['3077', 'd', 'J']
Output (English): Jd