Task: Program Execution
Input (English): ['S', 8335, '6173', 'M', 'D', 'w', 'H'], ['t', 1015, 'Q', '6173', 'M', 'D', 'n', 8917]
Output (English): 6173, M, D