Task: Program Execution
Input (English): 7589, H, 831, 7537, Q, 1165, 3847, 129
Output (English): 1, 3, 4, 6, 7, 8