Task: Program Execution
Input (English): m, 1583, 9905, X, T, 9697, 4295, Z
Output (English): m, X, T, Z