Task: Program Execution
Input (English): q, 391, 251, 267, 271, 131, 393, 55
Output (English): 1, 2, 3, 5, 6, 7, 9