Task: Program Execution
Input (English): T, D, 5179, 5777, i, 4027, 9613, 3445, T, 4999, J, 2123, 4563, w, 1739, 3881, g, 5943
Output (English): 51289