Task: Program Execution
Input (English): 2, 6, ['1559', 'a', '5221', 'S', 'J', '6607', '3105', 'G', 'J']
Output (English): 7066JS1225a