Task: Program Execution
Input (English): n, 4945, W, 7735, 6891, W, 3893, 9051
Output (English): 2, 4, 5, 7, 8