Task: Program Execution
Input (English): f, 27, q
Output (English): 2, 7