Task: Program Execution
Input (English): q, r, 489, a, c, 179, 481
Output (English): 1, 4, 7, 8, 9