Task: Program Execution
Input (English): 4471, 7409, a, 3631, z, g, c, 6719, 9745, P, 8715, e, 7755, Z, 7105, p, 9661, 8187, 5717, w, W, 9237
Output (English): 12