Task: Program Execution
Input (English): d, Q, 189, 7487, 2633, 947
Output (English): 3, 4, 5, 6