Task: Program Execution
Input (English): 2, 6, ['7307', 'k', '527', '8357', 'B', '1161', 'R']
Output (English): 10045