Task: Program Execution
Input (English): n, 1813, 6013, A, 5261, 3287, z, B
Output (English): 2, 3, 5, 6