Task: Program Execution
Input (English): 5, 8, ['1035', '1361', 'i', 'P', 'M', 'f', 'A', 'O', '6287']
Output (English): 0