Task: Program Execution
Input (English): 3, 4, ['975', 'x', 'd', 'G', 'k']
Output (English): G, d