Task: Program Execution
Input (English): 6235, 9963, 3117, 5585, 8363, 1429, 3261, 8739, 4219, 3653, 7735, M, H, 8769, 6499, 4405, 4831, T, 1893, 8251, 9753
Output (English): 6235, 9963, 3117, 5585, 8363, 1429, 3261, 8739, 4219, 3653, 7735, 8769, 6499, 4405, 4831, 1893, 8251, 9753