Task: Program Execution
Input (English): 2, 5, ['1387', 'v', 'a', 'a', '8977', '4247', 'U', 'g', 'j', '3743', '985', 'V', 'j', '999']
Output (English): v, U, V