Task: Program Execution
Input (English): 295, 8039, 8437, 2149, J, 2221, G, 35, w, J, N, 6921, 8647, B, w, 273, d
Output (English): 5, 7, 9, 10, 11, 14, 15, 17