Task: Program Execution
Input (English): 2449, J, 3709, 7511
Output (English): 2