Task: Program Execution
Input (English): 3, 7, ['S', 'M', 'S', '5937', '8683', 'J', '4563', '7893']
Output (English): S59378683J4563