Task: Program Execution
Input (English): 2, ['6395', '9367', 'm', '8319', 'P', 'l', 'Q', 'R', 'a', 'm', 'Y', '6523', 'U']
Output (English): 6395, 9367