Task: Program Execution
Input (English): 2, 4, ['2789', '5793', 'J', '9071', 'V', '1115', 'j', 'p', 'W', '5541', 'v', 'w']
Output (English): 1709J3975