Task: Program Execution
Input (English): 3, 6, ['n', '7725', '3493', 'G', 'Z', '947', 'S', '357', '9403']
Output (English): 947ZG3493