Task: Program Execution
Input (English): e, 1655, 9975, q, 2583
Output (English): 5, 1655, 9975, 17, 2583