Task: Program Execution
Input (English): 8365, P, 4629, s, 4185, 5619, W, 1987, 8075, S, t, d, 6921, 6465, 4121, Q, n, 8047, A, l, W, 4943, 2855
Output (English): 12