Task: Program Execution
Input (English): K, 1837, 5501, X, 7835, f, w, J, V, 4619, 667, 9409, 1301
Output (English): 31169