Task: Program Execution
Input (English): 5907, 265, 1035, w, 1763, q, 4311, B
Output (English): 1, 2, 3, 5, 7