Task: Program Execution
Input (English): 3, 5, ['5101', '2315', '2111', 'J', 'R']
Output (English): 2111, J, R