Task: Program Execution
Input (English): 9031, T, 9661, X
Output (English): 2