Task: Program Execution
Input (English): 6947, y, N, 4921, x, g, r, 9121, 5163, 1057
Output (English): 2, 3, 5, 6, 7