Task: Program Execution
Input (English): 5, 8, ['Q', 'z', 'K', 'T', 'D', '6313', '815', '1789', '37', '5915']
Output (English): 1789, 815, 6313, D