Task: Program Execution
Input (English): 7, 10, ['5335', '1271', '3921', 'S', '3641', 'r', 'G', 'm', 'C', '3783', '5195']
Output (English): GmC3783