Task: Program Execution
Input (English): A, 8353, 8139, 5471, 7079, 1787, T, 4611, q, K, S, 4133, 427, 7655, S, 313
Output (English): 47968