Task: Program Execution
Input (English): 343, 471, z, e, z, 351
Output (English): 1, 3, 4, 5, 7