Task: Program Execution
Input (English): 1, 5, ['1997', 'r', '215', '1905', 'A', '3123']
Output (English): 4117