Task: Program Execution
Input (English): 7, 7, ['8403', '6659', '7277', '299', '329', 'R', '5355', 'a', 'i', '3647', 'K', '1325', 'J', 'I', 'R', '2883']
Output (English): 5355