Task: Program Execution
Input (English): 287, 289, q, s
Output (English): 2, 7, 8, 9