Task: Program Execution
Input (English): q, 5783, m, k, 2501, r, 4821
Output (English): 2, 5, 7