Task: Program Execution
Input (English): 5, 9, ['J', 'a', '6189', '6417', 'i', 'Q', '6921', '8661', 'R', '9819']
Output (English): i, Q, 6921, 8661, R