Task: Program Execution
Input (English): 167, a, x, y, q
Output (English): 1, 6, 7