Task: Program Execution
Input (English): d, y, 301, 309, x, 3, 47, 45, g, z, 15, i
Output (English): 0, 1, 3, 4, 5, 7, 9