Task: Program Execution
Input (English): 4147, a, a, J, E
Output (English): 1