Task: Program Execution
Input (English): 9905, 3159, w, T, 5203
Output (English): 18267