Task: Program Execution
Input (English): q, A, 7787, A, D
Output (English): q, A, A, D, 7787