Task: Program Execution
Input (English): n, 3911, B, n, D, 9463, 4543, 5045
Output (English): 2, 6, 7, 8