Task: Program Execution
Input (English): 5, x, q, m, 275, x
Output (English): 2, 5, 7