Task: Program Execution
Input (English): 3, 4, ['1829', '5241', '3061', 'U', '4149', 'u', '613', '595', 'w', 'z', '8581', '2489', '2009', '7843', 'P', '1915', 'U']
Output (English): 3061, 613, 8581, P