Task: Program Execution
Input (English): 2, 5, ['N', '299', 'B', '6089', 'P', '5881', '5181', '5927', '5169', '7915', '3129']
Output (English): 299, 5181