Task: Program Execution
Input (English): 311, 147, a, 149, h
Output (English): 1, 3, 4, 7, 9