Task: Program Execution
Input (English): 2877, 5291, J, a, Q, 9605, x, 5491, 4133, 6575
Output (English): 33972