Task: Program Execution
Input (English): 5, 7, ['1597', '3779', '1005', 'z', 'Q', 'S', '1513', 'V']
Output (English): 1513SQ