Task: Program Execution
Input (English): 4529, 3529, 8303, 5877, 8297, T, 5781
Output (English): 6