Task: Program Execution
Input (English): 1959, s, b, V, M, G, t, G, 1629, l, 3479, 2999, L, 2585, Q
Output (English): 2, 3, 4, 5, 6, 7, 8, 10, 13, 15