Task: Program Execution
Input (English): q, 497, l, i, c, 139, d, a, l, b, r
Output (English): 1, 3, 4, 7, 9