Task: Program Execution
Input (English): 5629, v, 5041, f, 5259, 9573, 1563, 3659, r, b, h, 717, 1251, 6957, Q, z, 1875, 9153
Output (English): 50677