Task: Program Execution
Input (English): 3167, Y, n, S, 6745, N, B, u, 8511, 6803, 2357, 3789, 8861, j, 5135, B, 3341
Output (English): 2, 3, 4, 6, 7, 8, 14, 16