Task: Program Execution
Input (English): 2, ['501', 'v', 'X', '3605', 'a', '9859', 'd', 'V', 'u', 'v', 'Y', 'Q', 'J', '4727', '7133', '3295', 'J']
Output (English): 501, v