Task: Program Execution
Input (English): 7971, T
Output (English): 2