Task: Program Execution
Input (English): A, 321, A, 2169, J, R, w, 8273, u, 8337, V, 7851, V, 8015, N, 7145, T, 5437, Z, 6465
Output (English): 11