Task: Program Execution
Input (English): k, f, 4505, G, s, 7357, f, Z
Output (English): 1, 2, 4, 5, 7, 8