Task: Program Execution
Input (English): Q, 7975, o, x
Output (English): 1, 3, 4