Task: Program Execution
Input (English): 4, 6, ['J', 'T', 'S', 'R', 'v', 'X']
Output (English): R, v, X