Task: Program Execution
Input (English): 1, 6, ['2783', '6271', '8353', 'Q', '3817', 'P', '9507', '2823', 'F', '7119', '8543', 'Z']
Output (English): P3817Q835362712783