Task: Program Execution
Input (English): 2, 5, ['H', 'v', '1583', '7503', 'Z', 'S']
Output (English): Z, 7503, 1583, v