Task: Program Execution
Input (English): 4249, 4573, 8949, 2343, z, 2351, d, b
Output (English): 1, 2, 3, 4, 6