Task: Program Execution
Input (English): 2, 3, ['1847', 'P', 'a', '903', 'f', 'X']
Output (English): 0