Task: Program Execution
Input (English): 7349, 3507, R, R, O, w, 4957, Q, D, d, v, 5385, 6835, y, 8351, a, S, K, 1239, 5075, 2589, 995, n
Output (English): 13