Task: Program Execution
Input (English): 629, 3109, J, 2989, 8897, B, D, 8185, 9039
Output (English): 1, 2, 4, 5, 8, 9