Task: Program Execution
Input (English): 2, 6, ['5543', '2879', '4973', 'x', '3585', 'G', 'D', '7531', '3575']
Output (English): G, 3585, x, 4973, 2879