Task: Program Execution
Input (English): 5303, Q, P, Q, 1357, S, B, X, 5871, 4765, v, 6275, 2645, 4725
Output (English): 2, 3, 4, 6, 7, 8, 11