Task: Program Execution
Input (English): 5907, d, B, f, 5539, 845, 7345, a, N
Output (English): 1, 5, 6, 7