Task: Program Execution
Input (English): z, 273, 447, h
Output (English): 2, 3, 4, 7