Task: Program Execution
Input (English): 7, 8, ['3657', '9747', 'P', '6265', '8705', '8749', '3875', '3911']
Output (English): 7786