Task: Program Execution
Input (English): 4, 5, ['G', 'D', '1467', '9703', 'x']
Output (English): x9703