Task: Program Execution
Input (English): f, j, u, X, 1769, 5041, V, 4891, B, 2851, 6317, 3533, S
Output (English): 24402