Task: Program Execution
Input (English): q, u, 199, v, 249
Output (English): 1, 2, 4, 9