Task: Program Execution
Input (English): 5707, 733, O, 2625, H, q, a, J, 6547, w, w
Output (English): 1, 2, 4, 9