Task: Program Execution
Input (English): v, Q, 2973, 975, 1301, m
Output (English): 1, 2, 6