Task: Program Execution
Input (English): 3, ['3391', '7823', '4587', 'i', '8131', 'T', 'P', '3627', '9841', '493', '3823', 'P', '8841', 'B', 'p', 'h', 'R', 'a', '123']
Output (English): 3391, 7823, 4587