Task: Program Execution
Input (English): z, Z, Q, f, 7157, 8475, 4475, 1705, M, 7891, y, s, 5049, 6741, Q, 5839, x, v, 6937, o, 7809, f
Output (English): 12