Task: Program Execution
Input (English): z, 491, x, 417
Output (English): 1, 4, 7, 9