Task: Program Execution
Input (English): 2927, z, z, 7691, 7971, j, V, C, 3345, c, b, B, Z, O, 5643, a, 8313, X, 6627
Output (English): 12