Task: Program Execution
Input (English): 4719, t, 8947, S
Output (English): 2