Task: Program Execution
Input (English): k, m, 315, y, 17, o, 407, f
Output (English): 0, 1, 3, 4, 5, 7