Task: Program Execution
Input (English): a, 3833, g, G, N, 8523, 7931, 3155, 1821, W, 2139, 5645, 565, 4317, g, W, 3449, q
Output (English): 10