Task: Program Execution
Input (English): W, 3201, 4347, 7317, 305, 3103, 9387, 2095, n, 3037, 8013, 7267, 1731, q, c, M, 9903, 3647, S, I, 2811
Output (English): 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 17, 18, 21