Task: Program Execution
Input (English): d, q, g, 355, f
Output (English): 3, 5