Task: Program Execution
Input (English): 6179, 3887, E, 3233, J, 6637, 8749, f, x
Output (English): 1, 2, 4, 6, 7