Task: Program Execution
Input (English): 3, 4, ['S', '4771', 'g', 'V']
Output (English): V, g