Task: Program Execution
Input (English): s, W, L, 9975, 3667, 7429, 4157, X, S, a, F, 1665, 7343, 2249
Output (English): 36485