Task: Program Execution
Input (English): 5211, 3135, V, p, w, J, R, 7837, 3641, q, o, X, 1813, q, 2597
Output (English): 1, 2, 8, 9, 13, 15