Task: Program Execution
Input (English): 3, 5, ['K', '4819', '8621', '3331', 'g', 'd']
Output (English): g33318621