Task: Program Execution
Input (English): y, 1871, d, 8263, 1777, X, 9525, n, 7219, 9983, P, 1313, 287, 1745, 4247, x, W, w, 4323, 4403, 8401, 2703, 6891, 8311
Output (English): 1, 3, 6, 8, 11, 16, 17, 18