Task: Program Execution
Input (English): 147, 317, 5, y, o
Output (English): 1, 3, 4, 5, 7