Task: Program Execution
Input (English): x, 7533, 2961, w, A, 8597, J
Output (English): 1, 4, 5, 7