Task: Program Execution
Input (English): 3, 5, ['g', 'D', '3237', 'R', 'S', 'V']
Output (English): S, R, 3237