Task: Program Execution
Input (English): P, h, 5155, 2651, Q, 2871, G, 703, l, d, N, 8385, z, 2949, k, 2907, e, 4009, V, 4573
Output (English): 11