Task: Program Execution
Input (English): N, 7299, x, 4303, J, 6501, 3469, w, Q, 6621, j, 9077, r, A
Output (English): 37270