Task: Program Execution
Input (English): 2, 2, ['6151', '4311', '7455', 'A', '6511', '6917', '3979', 'x', '8027', '7075', 'R', '7535']
Output (English): 4311, A, 6917, x, 7075, 7535