Task: Program Execution
Input (English): t, g, 155, 8161, x, 9569
Output (English): g, t, x