Task: Program Execution
Input (English): 7, 12, ['4837', '6477', 'P', 'I', 'p', 'A', '4277', '6619', '4153', '8061', '2841', 'a', 'U', 'G', '4977', 'i', '5005', '2435']
Output (English): 25951