Task: Program Execution
Input (English): t, 5495, 4847, d, q, m, k
Output (English): d, k, m, q, t