Task: Program Execution
Input (English): q, d, a, 419
Output (English): 1, 4, 9