Task: Program Execution
Input (English): 2, ['4753', '4967', 'P', '1829']
Output (English): 4753, P