Task: Program Execution
Input (English): 8867, Y, J
Output (English): 2