Task: Program Execution
Input (English): M, 5247, n, 9397, 999, 3247, w, z, a, 3781, 875, 6793, h, y, F, d, 6479, l, N, w
Output (English): 1, 3, 7, 8, 9, 13, 14, 15, 16, 18, 19, 20