Task: Program Execution
Input (English): 3, 3, ['9501', 'O', '491', 'M', '2005', '327', '9113', '7473', '2781', '4777', '5131', '7129', 'I', 'A', '9613', '3055', 'i', 'P', 'm', 'x', '8773']
Output (English): 491, 327, 2781, 7129, 9613, P, 8773