Task: Program Execution
Input (English): 5, 8, ['1947', '1207', 'z', '8513', '3825', 'b', 'N', '4669', '3509', '5729', 'e']
Output (English): 8494