Task: Program Execution
Input (English): 1, 3, ['x', '971', '3029']
Output (English): 4000