Task: Program Execution
Input (English): 3, 3, ['h', 'b', 'V', 'o', '5259', 'K', '5203', '8207', '9797', '767', 'z', 'K', '8165', 'J', '1971', 'N']
Output (English): V, K, 9797, K, 1971