Task: Program Execution
Input (English): 3, 4, ['E', 'J', 'p', 'J']
Output (English): 0