Task: Program Execution
Input (English): 4, 7, ['2747', '5371', '8003', 'p', '4775', '7807', '6771', '9877']
Output (English): 19353