Task: Program Execution
Input (English): q, a, 95, 251
Output (English): 1, 2, 5, 9