Task: Program Execution
Input (English): B, w, L, v, e, 9987, 1835, d, K, A
Output (English): 11822