Task: Program Execution
Input (English): 3675, 5579, W, T, T, l, F, f, H, L, q, f, f, 173, 2987, Z, 4291
Output (English): 16705