Task: Program Execution
Input (English): 8027, q, 8141, T, 8119, X, 5593, 3975, X, q, 7669, c, r, 5301
Output (English): q, T, X, X, q, c, r