Task: Program Execution
Input (English): 5985, h, 7439, U, K, 4009, 435, J, 5813
Output (English): 1, 3, 6, 7, 9