Task: Program Execution
Input (English): z, 487, 91, n, h
Output (English): 1, 4, 7, 8, 9