Task: Program Execution
Input (English): T, J, 5835, 2785, G, 6075, 9523, 9829
Output (English): 34047