Task: Program Execution
Input (English): Y, 3731, 9651, L, Y, T, 2547, S, 5313, 7741, 5411, 1857, b
Output (English): 1, 4, 5, 6, 8, 13