Task: Program Execution
Input (English): 5, 7, ['G', '4349', '5867', 'Z', '8221', '8731', 'x', '9869', 'r']
Output (English): 82218731x