Task: Program Execution
Input (English): B, G, 509, b, J, V, 2387, 4717, 5799, 7591, 7881, m, 505, W, M, G, 6127, 8963, u, 5965
Output (English): 10