Task: Program Execution
Input (English): 5215, Z, 4871, 9175, 3639, 8217, 9137, X, 8465, 1331, X, U, 2837, 2609, Q, M, 6631, a
Output (English): 11