Task: Program Execution
Input (English): q, 99, 35, 395, c, 271, h, 393, g, f, 481
Output (English): 1, 2, 3, 4, 5, 7, 8, 9