Task: Program Execution
Input (English): 3, 4, ['P', '731', '6531', '6807', 'p', '6705']
Output (English): 6531, 6807