Task: Program Execution
Input (English): l, t, 3889, 3777, Q, D, X
Output (English): l, t, Q, D, X